You are here

interface EmitterInterface 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

Hierarchy

Expanded class hierarchy of EmitterInterface

All classes that implement EmitterInterface

File

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

Namespace

Zend\Diactoros\Response
View source
interface EmitterInterface {

  /**
   * 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.
   *
   * @param ResponseInterface $response
   */
  public function emit(ResponseInterface $response);

}

Members

Namesort descending Modifiers Type Description Overrides
EmitterInterface::emit public function Emit a response. 1