Skip to content

Commit

Permalink
Merge pull request #52 from svenluijten/patch-1
Browse files Browse the repository at this point in the history
Fix links to requests and responses
  • Loading branch information
brendt authored Jan 16, 2025
2 parents c93a2e7 + e5461e3 commit 8701f3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Front/Docs/Content/framework/03-controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ final readonly class BookController
}
```

A full overview of `Request` objects can be found [here](https://github.com/tempestphp/tempest-framework/blob/main/src/Tempest/Http/src/Request.php).
A full overview of `Request` objects can be found [here](https://github.com/tempestphp/tempest-framework/blob/main/src/Tempest/Router/src/Request.php).

### A note on data mapping

Expand Down Expand Up @@ -232,7 +232,7 @@ If you're returning responses Tempest has a bunch of responses built-in:
- `{php}Redirect` — the redirect response
- `{php}ServerError` — a 500 server error response

A full overview of responses can be found [here](https://github.com/tempestphp/tempest-framework/tree/main/src/Tempest/Http/src/Responses).
A full overview of responses can be found [here](https://github.com/tempestphp/tempest-framework/tree/main/src/Tempest/Router/src/Responses).

Returning responses from controllers looks like this:

Expand Down Expand Up @@ -477,4 +477,4 @@ final readonly class PageVisitedMiddleware implements HttpMiddleware
}
```

Note that task deferring only works if [`fastcgi_finish_request()`](https://www.php.net/manual/en/function.fastcgi-finish-request.php) is available within your PHP installation. If it's not available, deferred tasks will still be run, but the client response will only complete after all tasks have been finished as well.
Note that task deferring only works if [`fastcgi_finish_request()`](https://www.php.net/manual/en/function.fastcgi-finish-request.php) is available within your PHP installation. If it's not available, deferred tasks will still be run, but the client response will only complete after all tasks have been finished as well.

0 comments on commit 8701f3e

Please sign in to comment.