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.../psr/http-mes.../src
File: MessageInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace YoastSEO_Vendor\Psr\Http\Message;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* HTTP messages consist of requests from a client to a server and responses
[5] Fix | Delete
* from a server to a client. This interface defines the methods common to
[6] Fix | Delete
* each.
[7] Fix | Delete
*
[8] Fix | Delete
* Messages are considered immutable; all methods that might change state MUST
[9] Fix | Delete
* be implemented such that they retain the internal state of the current
[10] Fix | Delete
* message and return an instance that contains the changed state.
[11] Fix | Delete
*
[12] Fix | Delete
* @link http://www.ietf.org/rfc/rfc7230.txt
[13] Fix | Delete
* @link http://www.ietf.org/rfc/rfc7231.txt
[14] Fix | Delete
*/
[15] Fix | Delete
interface MessageInterface
[16] Fix | Delete
{
[17] Fix | Delete
/**
[18] Fix | Delete
* Retrieves the HTTP protocol version as a string.
[19] Fix | Delete
*
[20] Fix | Delete
* The string MUST contain only the HTTP version number (e.g., "1.1", "1.0").
[21] Fix | Delete
*
[22] Fix | Delete
* @return string HTTP protocol version.
[23] Fix | Delete
*/
[24] Fix | Delete
public function getProtocolVersion() : string;
[25] Fix | Delete
/**
[26] Fix | Delete
* Return an instance with the specified HTTP protocol version.
[27] Fix | Delete
*
[28] Fix | Delete
* The version string MUST contain only the HTTP version number (e.g.,
[29] Fix | Delete
* "1.1", "1.0").
[30] Fix | Delete
*
[31] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[32] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[33] Fix | Delete
* new protocol version.
[34] Fix | Delete
*
[35] Fix | Delete
* @param string $version HTTP protocol version
[36] Fix | Delete
* @return static
[37] Fix | Delete
*/
[38] Fix | Delete
public function withProtocolVersion(string $version) : \YoastSEO_Vendor\Psr\Http\Message\MessageInterface;
[39] Fix | Delete
/**
[40] Fix | Delete
* Retrieves all message header values.
[41] Fix | Delete
*
[42] Fix | Delete
* The keys represent the header name as it will be sent over the wire, and
[43] Fix | Delete
* each value is an array of strings associated with the header.
[44] Fix | Delete
*
[45] Fix | Delete
* // Represent the headers as a string
[46] Fix | Delete
* foreach ($message->getHeaders() as $name => $values) {
[47] Fix | Delete
* echo $name . ": " . implode(", ", $values);
[48] Fix | Delete
* }
[49] Fix | Delete
*
[50] Fix | Delete
* // Emit headers iteratively:
[51] Fix | Delete
* foreach ($message->getHeaders() as $name => $values) {
[52] Fix | Delete
* foreach ($values as $value) {
[53] Fix | Delete
* header(sprintf('%s: %s', $name, $value), false);
[54] Fix | Delete
* }
[55] Fix | Delete
* }
[56] Fix | Delete
*
[57] Fix | Delete
* While header names are not case-sensitive, getHeaders() will preserve the
[58] Fix | Delete
* exact case in which headers were originally specified.
[59] Fix | Delete
*
[60] Fix | Delete
* @return string[][] Returns an associative array of the message's headers. Each
[61] Fix | Delete
* key MUST be a header name, and each value MUST be an array of strings
[62] Fix | Delete
* for that header.
[63] Fix | Delete
*/
[64] Fix | Delete
public function getHeaders() : array;
[65] Fix | Delete
/**
[66] Fix | Delete
* Checks if a header exists by the given case-insensitive name.
[67] Fix | Delete
*
[68] Fix | Delete
* @param string $name Case-insensitive header field name.
[69] Fix | Delete
* @return bool Returns true if any header names match the given header
[70] Fix | Delete
* name using a case-insensitive string comparison. Returns false if
[71] Fix | Delete
* no matching header name is found in the message.
[72] Fix | Delete
*/
[73] Fix | Delete
public function hasHeader(string $name) : bool;
[74] Fix | Delete
/**
[75] Fix | Delete
* Retrieves a message header value by the given case-insensitive name.
[76] Fix | Delete
*
[77] Fix | Delete
* This method returns an array of all the header values of the given
[78] Fix | Delete
* case-insensitive header name.
[79] Fix | Delete
*
[80] Fix | Delete
* If the header does not appear in the message, this method MUST return an
[81] Fix | Delete
* empty array.
[82] Fix | Delete
*
[83] Fix | Delete
* @param string $name Case-insensitive header field name.
[84] Fix | Delete
* @return string[] An array of string values as provided for the given
[85] Fix | Delete
* header. If the header does not appear in the message, this method MUST
[86] Fix | Delete
* return an empty array.
[87] Fix | Delete
*/
[88] Fix | Delete
public function getHeader(string $name) : array;
[89] Fix | Delete
/**
[90] Fix | Delete
* Retrieves a comma-separated string of the values for a single header.
[91] Fix | Delete
*
[92] Fix | Delete
* This method returns all of the header values of the given
[93] Fix | Delete
* case-insensitive header name as a string concatenated together using
[94] Fix | Delete
* a comma.
[95] Fix | Delete
*
[96] Fix | Delete
* NOTE: Not all header values may be appropriately represented using
[97] Fix | Delete
* comma concatenation. For such headers, use getHeader() instead
[98] Fix | Delete
* and supply your own delimiter when concatenating.
[99] Fix | Delete
*
[100] Fix | Delete
* If the header does not appear in the message, this method MUST return
[101] Fix | Delete
* an empty string.
[102] Fix | Delete
*
[103] Fix | Delete
* @param string $name Case-insensitive header field name.
[104] Fix | Delete
* @return string A string of values as provided for the given header
[105] Fix | Delete
* concatenated together using a comma. If the header does not appear in
[106] Fix | Delete
* the message, this method MUST return an empty string.
[107] Fix | Delete
*/
[108] Fix | Delete
public function getHeaderLine(string $name) : string;
[109] Fix | Delete
/**
[110] Fix | Delete
* Return an instance with the provided value replacing the specified header.
[111] Fix | Delete
*
[112] Fix | Delete
* While header names are case-insensitive, the casing of the header will
[113] Fix | Delete
* be preserved by this function, and returned from getHeaders().
[114] Fix | Delete
*
[115] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[116] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[117] Fix | Delete
* new and/or updated header and value.
[118] Fix | Delete
*
[119] Fix | Delete
* @param string $name Case-insensitive header field name.
[120] Fix | Delete
* @param string|string[] $value Header value(s).
[121] Fix | Delete
* @return static
[122] Fix | Delete
* @throws \InvalidArgumentException for invalid header names or values.
[123] Fix | Delete
*/
[124] Fix | Delete
public function withHeader(string $name, $value) : \YoastSEO_Vendor\Psr\Http\Message\MessageInterface;
[125] Fix | Delete
/**
[126] Fix | Delete
* Return an instance with the specified header appended with the given value.
[127] Fix | Delete
*
[128] Fix | Delete
* Existing values for the specified header will be maintained. The new
[129] Fix | Delete
* value(s) will be appended to the existing list. If the header did not
[130] Fix | Delete
* exist previously, it will be added.
[131] Fix | Delete
*
[132] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[133] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[134] Fix | Delete
* new header and/or value.
[135] Fix | Delete
*
[136] Fix | Delete
* @param string $name Case-insensitive header field name to add.
[137] Fix | Delete
* @param string|string[] $value Header value(s).
[138] Fix | Delete
* @return static
[139] Fix | Delete
* @throws \InvalidArgumentException for invalid header names or values.
[140] Fix | Delete
*/
[141] Fix | Delete
public function withAddedHeader(string $name, $value) : \YoastSEO_Vendor\Psr\Http\Message\MessageInterface;
[142] Fix | Delete
/**
[143] Fix | Delete
* Return an instance without the specified header.
[144] Fix | Delete
*
[145] Fix | Delete
* Header resolution MUST be done without case-sensitivity.
[146] Fix | Delete
*
[147] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[148] Fix | Delete
* immutability of the message, and MUST return an instance that removes
[149] Fix | Delete
* the named header.
[150] Fix | Delete
*
[151] Fix | Delete
* @param string $name Case-insensitive header field name to remove.
[152] Fix | Delete
* @return static
[153] Fix | Delete
*/
[154] Fix | Delete
public function withoutHeader(string $name) : \YoastSEO_Vendor\Psr\Http\Message\MessageInterface;
[155] Fix | Delete
/**
[156] Fix | Delete
* Gets the body of the message.
[157] Fix | Delete
*
[158] Fix | Delete
* @return StreamInterface Returns the body as a stream.
[159] Fix | Delete
*/
[160] Fix | Delete
public function getBody() : \YoastSEO_Vendor\Psr\Http\Message\StreamInterface;
[161] Fix | Delete
/**
[162] Fix | Delete
* Return an instance with the specified message body.
[163] Fix | Delete
*
[164] Fix | Delete
* The body MUST be a StreamInterface object.
[165] Fix | Delete
*
[166] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[167] Fix | Delete
* immutability of the message, and MUST return a new instance that has the
[168] Fix | Delete
* new body stream.
[169] Fix | Delete
*
[170] Fix | Delete
* @param StreamInterface $body Body.
[171] Fix | Delete
* @return static
[172] Fix | Delete
* @throws \InvalidArgumentException When the body is not valid.
[173] Fix | Delete
*/
[174] Fix | Delete
public function withBody(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $body) : \YoastSEO_Vendor\Psr\Http\Message\MessageInterface;
[175] Fix | Delete
}
[176] Fix | Delete
[177] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function