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: RequestInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace YoastSEO_Vendor\Psr\Http\Message;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Representation of an outgoing, client-side request.
[5] Fix | Delete
*
[6] Fix | Delete
* Per the HTTP specification, this interface includes properties for
[7] Fix | Delete
* each of the following:
[8] Fix | Delete
*
[9] Fix | Delete
* - Protocol version
[10] Fix | Delete
* - HTTP method
[11] Fix | Delete
* - URI
[12] Fix | Delete
* - Headers
[13] Fix | Delete
* - Message body
[14] Fix | Delete
*
[15] Fix | Delete
* During construction, implementations MUST attempt to set the Host header from
[16] Fix | Delete
* a provided URI if no Host header is provided.
[17] Fix | Delete
*
[18] Fix | Delete
* Requests are considered immutable; all methods that might change state MUST
[19] Fix | Delete
* be implemented such that they retain the internal state of the current
[20] Fix | Delete
* message and return an instance that contains the changed state.
[21] Fix | Delete
*/
[22] Fix | Delete
interface RequestInterface extends \YoastSEO_Vendor\Psr\Http\Message\MessageInterface
[23] Fix | Delete
{
[24] Fix | Delete
/**
[25] Fix | Delete
* Retrieves the message's request target.
[26] Fix | Delete
*
[27] Fix | Delete
* Retrieves the message's request-target either as it will appear (for
[28] Fix | Delete
* clients), as it appeared at request (for servers), or as it was
[29] Fix | Delete
* specified for the instance (see withRequestTarget()).
[30] Fix | Delete
*
[31] Fix | Delete
* In most cases, this will be the origin-form of the composed URI,
[32] Fix | Delete
* unless a value was provided to the concrete implementation (see
[33] Fix | Delete
* withRequestTarget() below).
[34] Fix | Delete
*
[35] Fix | Delete
* If no URI is available, and no request-target has been specifically
[36] Fix | Delete
* provided, this method MUST return the string "/".
[37] Fix | Delete
*
[38] Fix | Delete
* @return string
[39] Fix | Delete
*/
[40] Fix | Delete
public function getRequestTarget() : string;
[41] Fix | Delete
/**
[42] Fix | Delete
* Return an instance with the specific request-target.
[43] Fix | Delete
*
[44] Fix | Delete
* If the request needs a non-origin-form request-target — e.g., for
[45] Fix | Delete
* specifying an absolute-form, authority-form, or asterisk-form —
[46] Fix | Delete
* this method may be used to create an instance with the specified
[47] Fix | Delete
* request-target, verbatim.
[48] Fix | Delete
*
[49] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[50] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[51] Fix | Delete
* changed request target.
[52] Fix | Delete
*
[53] Fix | Delete
* @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
[54] Fix | Delete
* request-target forms allowed in request messages)
[55] Fix | Delete
* @param string $requestTarget
[56] Fix | Delete
* @return static
[57] Fix | Delete
*/
[58] Fix | Delete
public function withRequestTarget(string $requestTarget) : \YoastSEO_Vendor\Psr\Http\Message\RequestInterface;
[59] Fix | Delete
/**
[60] Fix | Delete
* Retrieves the HTTP method of the request.
[61] Fix | Delete
*
[62] Fix | Delete
* @return string Returns the request method.
[63] Fix | Delete
*/
[64] Fix | Delete
public function getMethod() : string;
[65] Fix | Delete
/**
[66] Fix | Delete
* Return an instance with the provided HTTP method.
[67] Fix | Delete
*
[68] Fix | Delete
* While HTTP method names are typically all uppercase characters, HTTP
[69] Fix | Delete
* method names are case-sensitive and thus implementations SHOULD NOT
[70] Fix | Delete
* modify the given string.
[71] Fix | Delete
*
[72] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[73] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[74] Fix | Delete
* changed request method.
[75] Fix | Delete
*
[76] Fix | Delete
* @param string $method Case-sensitive method.
[77] Fix | Delete
* @return static
[78] Fix | Delete
* @throws \InvalidArgumentException for invalid HTTP methods.
[79] Fix | Delete
*/
[80] Fix | Delete
public function withMethod(string $method) : \YoastSEO_Vendor\Psr\Http\Message\RequestInterface;
[81] Fix | Delete
/**
[82] Fix | Delete
* Retrieves the URI instance.
[83] Fix | Delete
*
[84] Fix | Delete
* This method MUST return a UriInterface instance.
[85] Fix | Delete
*
[86] Fix | Delete
* @link http://tools.ietf.org/html/rfc3986#section-4.3
[87] Fix | Delete
* @return UriInterface Returns a UriInterface instance
[88] Fix | Delete
* representing the URI of the request.
[89] Fix | Delete
*/
[90] Fix | Delete
public function getUri() : \YoastSEO_Vendor\Psr\Http\Message\UriInterface;
[91] Fix | Delete
/**
[92] Fix | Delete
* Returns an instance with the provided URI.
[93] Fix | Delete
*
[94] Fix | Delete
* This method MUST update the Host header of the returned request by
[95] Fix | Delete
* default if the URI contains a host component. If the URI does not
[96] Fix | Delete
* contain a host component, any pre-existing Host header MUST be carried
[97] Fix | Delete
* over to the returned request.
[98] Fix | Delete
*
[99] Fix | Delete
* You can opt-in to preserving the original state of the Host header by
[100] Fix | Delete
* setting `$preserveHost` to `true`. When `$preserveHost` is set to
[101] Fix | Delete
* `true`, this method interacts with the Host header in the following ways:
[102] Fix | Delete
*
[103] Fix | Delete
* - If the Host header is missing or empty, and the new URI contains
[104] Fix | Delete
* a host component, this method MUST update the Host header in the returned
[105] Fix | Delete
* request.
[106] Fix | Delete
* - If the Host header is missing or empty, and the new URI does not contain a
[107] Fix | Delete
* host component, this method MUST NOT update the Host header in the returned
[108] Fix | Delete
* request.
[109] Fix | Delete
* - If a Host header is present and non-empty, this method MUST NOT update
[110] Fix | Delete
* the Host header in the returned request.
[111] Fix | Delete
*
[112] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[113] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[114] Fix | Delete
* new UriInterface instance.
[115] Fix | Delete
*
[116] Fix | Delete
* @link http://tools.ietf.org/html/rfc3986#section-4.3
[117] Fix | Delete
* @param UriInterface $uri New request URI to use.
[118] Fix | Delete
* @param bool $preserveHost Preserve the original state of the Host header.
[119] Fix | Delete
* @return static
[120] Fix | Delete
*/
[121] Fix | Delete
public function withUri(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri, bool $preserveHost = \false) : \YoastSEO_Vendor\Psr\Http\Message\RequestInterface;
[122] Fix | Delete
}
[123] Fix | Delete
[124] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function