Skip to main content
Version: 11.x

Interface: TRPCRequestInfo

Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:87

Information about the incoming request

Properties​

accept​

accept: null | "application/jsonl"

Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:91

The trpc-accept header


calls​

calls: TRPCRequestInfoProcedureCall[]

Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:103

The calls being made


connectionParams​

connectionParams: null | Dict<string>

Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:107

Connection params when using httpSubscriptionLink or createWSClient


isBatchCall​

isBatchCall: boolean

Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:99

If the content type handler has detected that this is a batch call


signal​

signal: AbortSignal

Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:112

Signal when the request is aborted Can be used to abort async operations during the request, e.g. fetch()-requests


type​

type: "query" | "mutation" | "subscription" | "unknown"

Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:95

The type of the request


url​

url: null | URL

Defined in: packages/server/src/unstable-core-do-not-import/http/types.ts:116

The URL of the request if available