public static function EmptyResponse::withHeaders in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-diactoros/src/Response/EmptyResponse.php \Zend\Diactoros\Response\EmptyResponse::withHeaders()
Create an empty response with the given headers.
Parameters
array $headers Headers for the response.:
Return value
File
- vendor/
zendframework/ zend-diactoros/ src/ Response/ EmptyResponse.php, line 38
Class
- EmptyResponse
- A class representing empty HTTP responses.
Namespace
Zend\Diactoros\ResponseCode
public static function withHeaders(array $headers) {
return new static(204, $headers);
}