You are here

public function EmitterInterface::emit in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-diactoros/src/Response/EmitterInterface.php \Zend\Diactoros\Response\EmitterInterface::emit()

Emit a response.

Emits a response, including status line, headers, and the message body, according to the environment.

Implementations of this method may be written in such a way as to have side effects, such as usage of header() or pushing output to the output buffer.

Implementations MAY raise exceptions if they are unable to emit the response; e.g., if headers have already been sent.

Parameters

ResponseInterface $response:

1 method overrides EmitterInterface::emit()
SapiEmitter::emit in vendor/zendframework/zend-diactoros/src/Response/SapiEmitter.php
Emits a response for a PHP SAPI environment.

File

vendor/zendframework/zend-diactoros/src/Response/EmitterInterface.php, line 31

Class

EmitterInterface

Namespace

Zend\Diactoros\Response

Code

public function emit(ResponseInterface $response);