Zend\Diactoros\Response\EmptyResponse::withHeaders PHP Method

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
    public static function withHeaders(array $headers)
    {
        return new static(204, $headers);
    }