Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../vendor_p.../guzzleht.../guzzle/src
File: ClientTrait.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace YoastSEO_Vendor\GuzzleHttp;
[2] Fix | Delete
[3] Fix | Delete
use YoastSEO_Vendor\GuzzleHttp\Exception\GuzzleException;
[4] Fix | Delete
use YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface;
[5] Fix | Delete
use YoastSEO_Vendor\Psr\Http\Message\ResponseInterface;
[6] Fix | Delete
use YoastSEO_Vendor\Psr\Http\Message\UriInterface;
[7] Fix | Delete
/**
[8] Fix | Delete
* Client interface for sending HTTP requests.
[9] Fix | Delete
*/
[10] Fix | Delete
trait ClientTrait
[11] Fix | Delete
{
[12] Fix | Delete
/**
[13] Fix | Delete
* Create and send an HTTP request.
[14] Fix | Delete
*
[15] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[16] Fix | Delete
* relative path to append to the base path of the client. The URL can
[17] Fix | Delete
* contain the query string as well.
[18] Fix | Delete
*
[19] Fix | Delete
* @param string $method HTTP method.
[20] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[21] Fix | Delete
* @param array $options Request options to apply.
[22] Fix | Delete
*
[23] Fix | Delete
* @throws GuzzleException
[24] Fix | Delete
*/
[25] Fix | Delete
public abstract function request(string $method, $uri, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface;
[26] Fix | Delete
/**
[27] Fix | Delete
* Create and send an HTTP GET request.
[28] Fix | Delete
*
[29] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[30] Fix | Delete
* relative path to append to the base path of the client. The URL can
[31] Fix | Delete
* contain the query string as well.
[32] Fix | Delete
*
[33] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[34] Fix | Delete
* @param array $options Request options to apply.
[35] Fix | Delete
*
[36] Fix | Delete
* @throws GuzzleException
[37] Fix | Delete
*/
[38] Fix | Delete
public function get($uri, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface
[39] Fix | Delete
{
[40] Fix | Delete
return $this->request('GET', $uri, $options);
[41] Fix | Delete
}
[42] Fix | Delete
/**
[43] Fix | Delete
* Create and send an HTTP HEAD request.
[44] Fix | Delete
*
[45] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[46] Fix | Delete
* relative path to append to the base path of the client. The URL can
[47] Fix | Delete
* contain the query string as well.
[48] Fix | Delete
*
[49] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[50] Fix | Delete
* @param array $options Request options to apply.
[51] Fix | Delete
*
[52] Fix | Delete
* @throws GuzzleException
[53] Fix | Delete
*/
[54] Fix | Delete
public function head($uri, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface
[55] Fix | Delete
{
[56] Fix | Delete
return $this->request('HEAD', $uri, $options);
[57] Fix | Delete
}
[58] Fix | Delete
/**
[59] Fix | Delete
* Create and send an HTTP PUT request.
[60] Fix | Delete
*
[61] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[62] Fix | Delete
* relative path to append to the base path of the client. The URL can
[63] Fix | Delete
* contain the query string as well.
[64] Fix | Delete
*
[65] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[66] Fix | Delete
* @param array $options Request options to apply.
[67] Fix | Delete
*
[68] Fix | Delete
* @throws GuzzleException
[69] Fix | Delete
*/
[70] Fix | Delete
public function put($uri, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface
[71] Fix | Delete
{
[72] Fix | Delete
return $this->request('PUT', $uri, $options);
[73] Fix | Delete
}
[74] Fix | Delete
/**
[75] Fix | Delete
* Create and send an HTTP POST request.
[76] Fix | Delete
*
[77] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[78] Fix | Delete
* relative path to append to the base path of the client. The URL can
[79] Fix | Delete
* contain the query string as well.
[80] Fix | Delete
*
[81] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[82] Fix | Delete
* @param array $options Request options to apply.
[83] Fix | Delete
*
[84] Fix | Delete
* @throws GuzzleException
[85] Fix | Delete
*/
[86] Fix | Delete
public function post($uri, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface
[87] Fix | Delete
{
[88] Fix | Delete
return $this->request('POST', $uri, $options);
[89] Fix | Delete
}
[90] Fix | Delete
/**
[91] Fix | Delete
* Create and send an HTTP PATCH request.
[92] Fix | Delete
*
[93] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[94] Fix | Delete
* relative path to append to the base path of the client. The URL can
[95] Fix | Delete
* contain the query string as well.
[96] Fix | Delete
*
[97] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[98] Fix | Delete
* @param array $options Request options to apply.
[99] Fix | Delete
*
[100] Fix | Delete
* @throws GuzzleException
[101] Fix | Delete
*/
[102] Fix | Delete
public function patch($uri, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface
[103] Fix | Delete
{
[104] Fix | Delete
return $this->request('PATCH', $uri, $options);
[105] Fix | Delete
}
[106] Fix | Delete
/**
[107] Fix | Delete
* Create and send an HTTP DELETE request.
[108] Fix | Delete
*
[109] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[110] Fix | Delete
* relative path to append to the base path of the client. The URL can
[111] Fix | Delete
* contain the query string as well.
[112] Fix | Delete
*
[113] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[114] Fix | Delete
* @param array $options Request options to apply.
[115] Fix | Delete
*
[116] Fix | Delete
* @throws GuzzleException
[117] Fix | Delete
*/
[118] Fix | Delete
public function delete($uri, array $options = []) : \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface
[119] Fix | Delete
{
[120] Fix | Delete
return $this->request('DELETE', $uri, $options);
[121] Fix | Delete
}
[122] Fix | Delete
/**
[123] Fix | Delete
* Create and send an asynchronous HTTP request.
[124] Fix | Delete
*
[125] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[126] Fix | Delete
* relative path to append to the base path of the client. The URL can
[127] Fix | Delete
* contain the query string as well. Use an array to provide a URL
[128] Fix | Delete
* template and additional variables to use in the URL template expansion.
[129] Fix | Delete
*
[130] Fix | Delete
* @param string $method HTTP method
[131] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[132] Fix | Delete
* @param array $options Request options to apply.
[133] Fix | Delete
*/
[134] Fix | Delete
public abstract function requestAsync(string $method, $uri, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface;
[135] Fix | Delete
/**
[136] Fix | Delete
* Create and send an asynchronous HTTP GET request.
[137] Fix | Delete
*
[138] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[139] Fix | Delete
* relative path to append to the base path of the client. The URL can
[140] Fix | Delete
* contain the query string as well. Use an array to provide a URL
[141] Fix | Delete
* template and additional variables to use in the URL template expansion.
[142] Fix | Delete
*
[143] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[144] Fix | Delete
* @param array $options Request options to apply.
[145] Fix | Delete
*/
[146] Fix | Delete
public function getAsync($uri, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface
[147] Fix | Delete
{
[148] Fix | Delete
return $this->requestAsync('GET', $uri, $options);
[149] Fix | Delete
}
[150] Fix | Delete
/**
[151] Fix | Delete
* Create and send an asynchronous HTTP HEAD request.
[152] Fix | Delete
*
[153] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[154] Fix | Delete
* relative path to append to the base path of the client. The URL can
[155] Fix | Delete
* contain the query string as well. Use an array to provide a URL
[156] Fix | Delete
* template and additional variables to use in the URL template expansion.
[157] Fix | Delete
*
[158] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[159] Fix | Delete
* @param array $options Request options to apply.
[160] Fix | Delete
*/
[161] Fix | Delete
public function headAsync($uri, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface
[162] Fix | Delete
{
[163] Fix | Delete
return $this->requestAsync('HEAD', $uri, $options);
[164] Fix | Delete
}
[165] Fix | Delete
/**
[166] Fix | Delete
* Create and send an asynchronous HTTP PUT request.
[167] Fix | Delete
*
[168] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[169] Fix | Delete
* relative path to append to the base path of the client. The URL can
[170] Fix | Delete
* contain the query string as well. Use an array to provide a URL
[171] Fix | Delete
* template and additional variables to use in the URL template expansion.
[172] Fix | Delete
*
[173] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[174] Fix | Delete
* @param array $options Request options to apply.
[175] Fix | Delete
*/
[176] Fix | Delete
public function putAsync($uri, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface
[177] Fix | Delete
{
[178] Fix | Delete
return $this->requestAsync('PUT', $uri, $options);
[179] Fix | Delete
}
[180] Fix | Delete
/**
[181] Fix | Delete
* Create and send an asynchronous HTTP POST request.
[182] Fix | Delete
*
[183] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[184] Fix | Delete
* relative path to append to the base path of the client. The URL can
[185] Fix | Delete
* contain the query string as well. Use an array to provide a URL
[186] Fix | Delete
* template and additional variables to use in the URL template expansion.
[187] Fix | Delete
*
[188] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[189] Fix | Delete
* @param array $options Request options to apply.
[190] Fix | Delete
*/
[191] Fix | Delete
public function postAsync($uri, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface
[192] Fix | Delete
{
[193] Fix | Delete
return $this->requestAsync('POST', $uri, $options);
[194] Fix | Delete
}
[195] Fix | Delete
/**
[196] Fix | Delete
* Create and send an asynchronous HTTP PATCH request.
[197] Fix | Delete
*
[198] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[199] Fix | Delete
* relative path to append to the base path of the client. The URL can
[200] Fix | Delete
* contain the query string as well. Use an array to provide a URL
[201] Fix | Delete
* template and additional variables to use in the URL template expansion.
[202] Fix | Delete
*
[203] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[204] Fix | Delete
* @param array $options Request options to apply.
[205] Fix | Delete
*/
[206] Fix | Delete
public function patchAsync($uri, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface
[207] Fix | Delete
{
[208] Fix | Delete
return $this->requestAsync('PATCH', $uri, $options);
[209] Fix | Delete
}
[210] Fix | Delete
/**
[211] Fix | Delete
* Create and send an asynchronous HTTP DELETE request.
[212] Fix | Delete
*
[213] Fix | Delete
* Use an absolute path to override the base path of the client, or a
[214] Fix | Delete
* relative path to append to the base path of the client. The URL can
[215] Fix | Delete
* contain the query string as well. Use an array to provide a URL
[216] Fix | Delete
* template and additional variables to use in the URL template expansion.
[217] Fix | Delete
*
[218] Fix | Delete
* @param string|UriInterface $uri URI object or string.
[219] Fix | Delete
* @param array $options Request options to apply.
[220] Fix | Delete
*/
[221] Fix | Delete
public function deleteAsync($uri, array $options = []) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface
[222] Fix | Delete
{
[223] Fix | Delete
return $this->requestAsync('DELETE', $uri, $options);
[224] Fix | Delete
}
[225] Fix | Delete
}
[226] Fix | Delete
[227] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function