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/clone/wp-conte.../plugins/accelera.../includes/vendor/tool
File: Response.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace AmpProject;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Response that was returned from a RemoteRequest execution.
[5] Fix | Delete
*
[6] Fix | Delete
* The method signatures are mostly a subset of PSR-7:
[7] Fix | Delete
* @see https://www.php-fig.org/psr/psr-7/
[8] Fix | Delete
*
[9] Fix | Delete
* @todo Consider using PSR-7 directly (both interfaces and a library that implements them).
[10] Fix | Delete
*
[11] Fix | Delete
* @package ampproject/amp-toolbox
[12] Fix | Delete
*/
[13] Fix | Delete
interface Response
[14] Fix | Delete
{
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* Retrieves all message header values.
[18] Fix | Delete
*
[19] Fix | Delete
* The keys represent the header name as it will be sent over the wire, and each value is an array of strings
[20] Fix | Delete
* associated with the header.
[21] Fix | Delete
*
[22] Fix | Delete
* // Represent the headers as a string
[23] Fix | Delete
* foreach ($message->getHeaders() as $name => $values) {
[24] Fix | Delete
* echo $name . ': ' . implode(', ', $values);
[25] Fix | Delete
* }
[26] Fix | Delete
*
[27] Fix | Delete
* // Emit headers iteratively:
[28] Fix | Delete
* foreach ($message->getHeaders() as $name => $values) {
[29] Fix | Delete
* foreach ($values as $value) {
[30] Fix | Delete
* header(sprintf('%s: %s', $name, $value), false);
[31] Fix | Delete
* }
[32] Fix | Delete
* }
[33] Fix | Delete
*
[34] Fix | Delete
* While header names are not case-sensitive, getHeaders() will preserve the exact case in which headers were
[35] Fix | Delete
* originally specified.
[36] Fix | Delete
*
[37] Fix | Delete
* @return string[][] Returns an associative array of the message's headers. Each key MUST be a header name, and
[38] Fix | Delete
* each value MUST be an array of strings for that header.
[39] Fix | Delete
*/
[40] Fix | Delete
public function getHeaders();
[41] Fix | Delete
[42] Fix | Delete
/**
[43] Fix | Delete
* Checks if a header exists by the given case-insensitive name.
[44] Fix | Delete
*
[45] Fix | Delete
* @param string $name Case-insensitive header field name.
[46] Fix | Delete
* @return bool Returns true if any header names match the given header name using a case-insensitive string
[47] Fix | Delete
* comparison. Returns false if no matching header name is found in the message.
[48] Fix | Delete
*/
[49] Fix | Delete
public function hasHeader($name);
[50] Fix | Delete
[51] Fix | Delete
/**
[52] Fix | Delete
* Retrieves a message header value by the given case-insensitive name.
[53] Fix | Delete
*
[54] Fix | Delete
* This method returns an array of all the header values of the given case-insensitive header name.
[55] Fix | Delete
*
[56] Fix | Delete
* If the header does not appear in the message, this method MUST return an empty array.
[57] Fix | Delete
*
[58] Fix | Delete
* @param string $name Case-insensitive header field name.
[59] Fix | Delete
* @return string[] An array of string values as provided for the given header. If the header does not appear in
[60] Fix | Delete
* the message, this method MUST return an empty array.
[61] Fix | Delete
*/
[62] Fix | Delete
public function getHeader($name);
[63] Fix | Delete
[64] Fix | Delete
/**
[65] Fix | Delete
* Retrieves a comma-separated string of the values for a single header.
[66] Fix | Delete
*
[67] Fix | Delete
* This method returns all of the header values of the given case-insensitive header name as a string concatenated
[68] Fix | Delete
* together using a comma.
[69] Fix | Delete
*
[70] Fix | Delete
* NOTE: Not all header values may be appropriately represented using comma concatenation. For such headers, use
[71] Fix | Delete
* getHeader() instead and supply your own delimiter when concatenating.
[72] Fix | Delete
*
[73] Fix | Delete
* If the header does not appear in the message, this method MUST return an empty string.
[74] Fix | Delete
*
[75] Fix | Delete
* @param string $name Case-insensitive header field name.
[76] Fix | Delete
* @return string A string of values as provided for the given header concatenated together using a comma. If the
[77] Fix | Delete
* header does not appear in the message, this method MUST return an empty string.
[78] Fix | Delete
*/
[79] Fix | Delete
public function getHeaderLine($name);
[80] Fix | Delete
[81] Fix | Delete
/**
[82] Fix | Delete
* Gets the response status code.
[83] Fix | Delete
*
[84] Fix | Delete
* The status code is a 3-digit integer result code of the server's attempt to understand and satisfy the request.
[85] Fix | Delete
*
[86] Fix | Delete
* @return int Status code.
[87] Fix | Delete
*/
[88] Fix | Delete
public function getStatusCode();
[89] Fix | Delete
[90] Fix | Delete
/**
[91] Fix | Delete
* Get the body of the response.
[92] Fix | Delete
*
[93] Fix | Delete
* @return mixed Body of the response.
[94] Fix | Delete
*/
[95] Fix | Delete
public function getBody();
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function