Skip to content

Commit

Permalink
Merge branch 'main' into infra-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ekerfelt authored Dec 9, 2024
2 parents 5ffad36 + a9dfbac commit c773aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ts/develop/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ For [Raw Endpoints](/docs/ts/primitives/raw-endpoints) you can access the raw re
raw response via `req.rawRequest` and `req.rawResponse`.

The `next` function returns a `HandlerResponse` object which contains the response from the API.
Extra response headers can be added using `req.setHeader(key, value)`, if the endpoint is
a [typed API endpoint](/docs/ts/primitives/defining-apis).
Extra response headers can be added using `resp.header.set(key, value)` or `resp.header.add(key, value)`,
if the endpoint is a [typed API endpoint](/docs/ts/primitives/defining-apis).

## Middleware ordering

Expand Down

0 comments on commit c773aa6

Please sign in to comment.