Skip to content

Commit

Permalink
Update docs/book/response.md
Browse files Browse the repository at this point in the history
Co-authored-by: Frank Brückner <info@froschdesignstudio.de>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
samsonasik and froschdesign committed Aug 12, 2020
1 parent dfad9e2 commit 8334a2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/book/response.md
Expand Up @@ -141,7 +141,9 @@ EOS);

### handle Headers already sent

> Available since version 2.13.0, we can handle header already sent by pass callable via `Response::setHeadersSentHandler()`:
> Available since version 2.13.0
We can handle header already sent by pass callable via `Response::setHeadersSentHandler()`:

```php
use Laminas\Http\Response;
Expand All @@ -150,4 +152,4 @@ $response = new Response();
$response->setHeadersSentHandler(function ($response): void {
throw new RuntimeException('Cannot send headers, headers already sent');
});
```
```

0 comments on commit 8334a2e

Please sign in to comment.