PHP Class Zend\Diactoros\Request

Requests are considered immutable; all methods that might change state are implemented such that they retain the internal state of the current message and return a new instance that contains the changed state.
Inheritance: implements Psr\Http\Message\RequestInterface, use trait MessageTrait, use trait RequestTrait
Afficher le fichier Open project: zendframework/zend-diactoros Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( null | string | Psr\Http\Message\UriInterface $uri = null, null | string $method = null, string | resource | Psr\Http\Message\StreamInterface $body = 'php://temp', array $headers = [] )
getHeader ( $header )
getHeaders ( )

Method Details

__construct() public méthode

public __construct ( null | string | Psr\Http\Message\UriInterface $uri = null, null | string $method = null, string | resource | Psr\Http\Message\StreamInterface $body = 'php://temp', array $headers = [] )
$uri null | string | Psr\Http\Message\UriInterface URI for the request, if any.
$method null | string HTTP method for the request, if any.
$body string | resource | Psr\Http\Message\StreamInterface Message body, if any.
$headers array Headers for the message, if any.

getHeader() public méthode

public getHeader ( $header )

getHeaders() public méthode

public getHeaders ( )