Interface: HTTPBaseHandlerOptions<TRouter, TRequest>
Base interface for anything using HTTP
Extends
BaseHandlerOptions
<TRouter
,TRequest
>
Type parameters
Parameter |
---|
TRouter extends AnyTRPCRouter |
TRequest |
Properties
batching
optional
batching:object
Type declaration
batching.enabled
enabled:
boolean
Source
packages/core/dist/http/types.d.ts:91
Inherited from
BaseHandlerOptions.batching
onError
optional
onError:OnErrorFunction
<TRouter
,TRequest
>
Source
packages/core/dist/http/types.d.ts:90
Inherited from
BaseHandlerOptions.onError
responseMeta
optional
responseMeta:ResponseMetaFn
<TRouter
>
Add handler to be called before response is sent to the user Useful for setting cache headers
Link
https://trpc.io/docs/v11/caching
Source
packages/core/dist/http/types.d.ts:51
router
router:
TRouter
Source
packages/core/dist/http/types.d.ts:94
Inherited from
BaseHandlerOptions.router
Generated using TypeDoc and typedoc-plugin-markdown