3 * Zend Framework (http://framework.zend.com/)
5 * @see http://github.com/zendframework/zend-diactoros for the canonical source repository
6 * @copyright Copyright (c) 2015-2016 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md New BSD License
10 namespace Zend\Diactoros\Response;
12 use Psr\Http\Message\ResponseInterface;
14 interface EmitterInterface
19 * Emits a response, including status line, headers, and the message body,
20 * according to the environment.
22 * Implementations of this method may be written in such a way as to have
23 * side effects, such as usage of header() or pushing output to the
26 * Implementations MAY raise exceptions if they are unable to emit the
27 * response; e.g., if headers have already been sent.
29 * @param ResponseInterface $response
31 public function emit(ResponseInterface $response);