PHP Класс Zend\Diactoros\Response\EmptyResponse

Наследование: extends Zend\Diactoros\Response
Показать файл Открыть проект

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

Метод Описание
__construct ( integer $status = 204, array $headers = [] ) Create an empty response with the given status code.
withHeaders ( array $headers ) : EmptyResponse Create an empty response with the given headers.

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

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

Create an empty response with the given status code.
public __construct ( integer $status = 204, array $headers = [] )
$status integer Status code for the response, if any.
$headers array Headers for the response, if any.

withHeaders() публичный статический Метод

Create an empty response with the given headers.
public static withHeaders ( array $headers ) : EmptyResponse
$headers array Headers for the response.
Результат EmptyResponse