You are here

public static function EmptyResponse::withHeaders in Zircon Profile 8

Same name and namespace in other branches
  1. 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

EmptyResponse

File

vendor/zendframework/zend-diactoros/src/Response/EmptyResponse.php, line 38

Class

EmptyResponse
A class representing empty HTTP responses.

Namespace

Zend\Diactoros\Response

Code

public static function withHeaders(array $headers) {
  return new static(204, $headers);
}