0 follower

Interface Yiisoft\PsrEmitter\EmitterInterface

Implemented byYiisoft\PsrEmitter\FakeEmitter, Yiisoft\PsrEmitter\SapiEmitter

EmitterInterface is responsible for sending HTTP responses.

Public Methods

Hide inherited methods

Method Description Defined By
emit() Sends the response to the client with headers and body. Yiisoft\PsrEmitter\EmitterInterface

Method Details

Hide inherited methods

emit() public abstract method

Sends the response to the client with headers and body.

public abstract void emit ( \Psr\Http\Message\ResponseInterface $response )
$response \Psr\Http\Message\ResponseInterface

Response object to send.

throws Yiisoft\PsrEmitter\HeadersHaveBeenSentException

If headers have already been sent.

                public function emit(ResponseInterface $response): void;