Replies: 1 comment
-
|
They live in the Here's an example of using import { getRequestHeaders } from '@tanstack/react-start/server';
const foo = createServerFn().handler(async () => {
const headers = getRequestHeaders();
// Do something cool
});
export default foo; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there! 👋🏻
I need to check out the headers in a server function. The docs for server functions have a section on this, but they don’t explain how to use them:
https://tanstack.com/start/latest/docs/framework/solid/guide/server-functions#server-context--request-handling
Where does getRequestHeader() come from? Can someone share an example of how to use it?
Beta Was this translation helpful? Give feedback.
All reactions