Interface: TRPCRequestInfo
On this page
Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:102
What tRPC knows about a request, which createContext gets as info.
See
https://trpc.io/docs/server/context#creating-the-context
Properties
accept
accept:
null|"application/jsonl"
Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:106
The trpc-accept header.
calls
calls:
TRPCRequestInfoProcedureCall[]
Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:118
The procedure calls in the request.
connectionParams
connectionParams:
null|Dict<string>
Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:123
The connection params the client sent with httpSubscriptionLink or
createWSClient.
isBatchCall
isBatchCall:
boolean
Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:114
Whether the request is a batch.
signal
signal:
AbortSignal
Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:128
Aborts when the request does. Pass it on to work the request starts,
such as fetch() calls.
type
type:
"query"|"mutation"|"subscription"|"unknown"
Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:110
The type of the procedures called.
url
url:
null|URL
Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:132
The request's URL, if known.