Skip to content

Commit

Permalink
update headers related docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsam committed Dec 4, 2024
1 parent 23f3cca commit 6fae52e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/server-timing.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export async function loader({ params }: LoaderFunctionArgs) {
)
}

// We have a general headers handler to save you from boilerplating.
// export const headers: HeadersFunction = pipeHeaders
export const headers: HeadersFunction = ({ loaderHeaders, parentHeaders }) => {
return {
'Server-Timing': combineServerTimings(parentHeaders, loaderHeaders), // <-- 4. Send headers
Expand Down

0 comments on commit 6fae52e

Please sign in to comment.