Type Alias: FetchCreateContextFnOptions
On this page
FetchCreateContextFnOptions:
object
Defined in: packages/server/src/adapters/fetch/types.ts:26
What createContext gets in the Fetch adapter.
Type declaration
info
info:
TRPCRequestInfo
req
req:
Request
resHeaders
resHeaders:
Headers
The response's headers, which you can add to, such as to set cookies.
See
https://trpc.io/docs/server/adapters/fetch#create-the-context