PHP Класс Phly\Http\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.
Наследование: implements Psr\Http\Message\RequestInterface, use trait MessageTrait, use trait RequestTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( null | string $uri = null, null | string $method = null, string | resource | StreamInterface $body = 'php://memory', array $headers = [] )
getHeader ( $header )
getHeaders ( )

Описание методов

__construct() публичный Метод

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

getHeader() публичный Метод

public getHeader ( $header )

getHeaders() публичный Метод

public getHeaders ( )