annotate vendor/zendframework/zend-diactoros/src/Response/EmitterInterface.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents c2387f117808
children
rev   line source
Chris@0 1 <?php
Chris@0 2 /**
Chris@16 3 * @see https://github.com/zendframework/zend-diactoros for the canonical source repository
Chris@16 4 * @copyright Copyright (c) 2015-2018 Zend Technologies USA Inc. (https://www.zend.com)
Chris@0 5 * @license https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md New BSD License
Chris@0 6 */
Chris@0 7
Chris@0 8 namespace Zend\Diactoros\Response;
Chris@0 9
Chris@0 10 use Psr\Http\Message\ResponseInterface;
Chris@0 11
Chris@16 12 /**
Chris@16 13 * @deprecated since 1.8.0. The package zendframework/zend-httphandlerrunner
Chris@16 14 * now provides this functionality.
Chris@16 15 */
Chris@0 16 interface EmitterInterface
Chris@0 17 {
Chris@0 18 /**
Chris@0 19 * Emit a response.
Chris@0 20 *
Chris@0 21 * Emits a response, including status line, headers, and the message body,
Chris@0 22 * according to the environment.
Chris@0 23 *
Chris@0 24 * Implementations of this method may be written in such a way as to have
Chris@0 25 * side effects, such as usage of header() or pushing output to the
Chris@0 26 * output buffer.
Chris@0 27 *
Chris@0 28 * Implementations MAY raise exceptions if they are unable to emit the
Chris@0 29 * response; e.g., if headers have already been sent.
Chris@0 30 *
Chris@0 31 * @param ResponseInterface $response
Chris@0 32 */
Chris@0 33 public function emit(ResponseInterface $response);
Chris@0 34 }