Skip to content

Commit

Permalink
Actualize Early hints doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Feb 1, 2024
1 parent f8ee277 commit 2e96b33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ the `endOfStream` parameter set to `false`. This will send the response to the c
additional responses.

```php
/** @var \Spiral\RoadRunner\Http\HttpWorker $httpWorker */
/** @var \Spiral\RoadRunner\Http\PSR7Worker $psr7 */
$httpWorker = $psr7->getHttpWorker();
$httpWorker->respond(103, header: ['Link' => ['</style.css>; rel=preload; as=style']], endOfStream: false);
$httpWorker->respond(200, body: $body);
```
Expand Down

0 comments on commit 2e96b33

Please sign in to comment.