Interface Yiisoft\PsrEmitter\EmitterInterface
| Implemented by | Yiisoft\PsrEmitter\FakeEmitter, Yiisoft\PsrEmitter\SapiEmitter |
|---|
EmitterInterface is responsible for sending HTTP responses.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| emit() | Sends the response to the client with headers and body. | Yiisoft\PsrEmitter\EmitterInterface |
Method Details
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;
Signup or Login in order to comment.