annotate vendor/zendframework/zend-diactoros/src/Response/EmitterInterface.php @ 0:4c8ae668cc8c

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