Method | Description | |
---|---|---|
getMethod ( ) : string | Retrieves the HTTP method of the request. | |
getRequestTarget ( ) : string | Retrieves the message's request target. | |
getUri ( ) : Psr\Http\Message\UriInterface | Retrieves the URI instance. | |
withMethod ( string $method ) : static | Return an instance with the provided HTTP method. | |
withRequestTarget ( mixed $requestTarget ) : static | Create a new instance with a specific request-target. | |
withUri ( Psr\Http\Message\UriInterface $uri, boolean $preserveHost = false ) : static | Returns an instance with the provided URI. |
Method | Description | |
---|---|---|
assertHeaders ( array $headers ) | Ensure header names and values are valid. | |
createUri ( null | string | Psr\Http\Message\UriInterface $uri ) : Psr\Http\Message\UriInterface | Create and return a URI instance. | |
getHostFromUri ( ) : string | Retrieve the host from the URI instance | |
initialize ( null | string | Psr\Http\Message\UriInterface $uri = null, null | string $method = null, string | resource | Psr\Http\Message\StreamInterface $body = 'php://memory', array $headers = [] ) | Initialize request state. | |
validateMethod ( null | string $method ) | Validate the HTTP method |
public getRequestTarget ( ) : string | ||
return | string |
public getUri ( ) : Psr\Http\Message\UriInterface | ||
return | Psr\Http\Message\UriInterface | Returns a UriInterface instance representing the URI of the request, if any. |
public withMethod ( string $method ) : static | ||
$method | string | Case-insensitive method. |
return | static |
public withRequestTarget ( mixed $requestTarget ) : static | ||
$requestTarget | mixed | |
return | static |