Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Zend
Diactoros
Response
EmptyResponse
withHeaders
Zend\Diactoros\Response\EmptyResponse::withHeaders PHP Method
EmptyResponse Class Documentation
Show file
Open project: zendframework/zend-diactoros
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); }
EmptyResponse
__construct
withHeaders