PHP Class Zend\Diactoros\Response\EmptyResponse

Inheritance: extends Zend\Diactoros\Response
显示文件 Open project: zendframework/zend-diactoros

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public static method

Create an empty response with the given headers.
public static withHeaders ( array $headers ) : EmptyResponse
$headers array Headers for the response.
return EmptyResponse