f27b4a9ceb78f65afd565e82283f384bdd3556f5
[yaffs-website] / vendor / zendframework / zend-diactoros / src / Response / EmitterInterface.php
1 <?php
2 /**
3  * Zend Framework (http://framework.zend.com/)
4  *
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
8  */
9
10 namespace Zend\Diactoros\Response;
11
12 use Psr\Http\Message\ResponseInterface;
13
14 interface EmitterInterface
15 {
16     /**
17      * Emit a response.
18      *
19      * Emits a response, including status line, headers, and the message body,
20      * according to the environment.
21      *
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
24      * output buffer.
25      *
26      * Implementations MAY raise exceptions if they are unable to emit the
27      * response; e.g., if headers have already been sent.
28      *
29      * @param ResponseInterface $response
30      */
31     public function emit(ResponseInterface $response);
32 }