Skip to content
tRPC

Partners

Interface: ResponseMeta

On this page

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

The status and headers responseMeta sets on a response.

See

https://trpc.io/docs/server/caching#using-responsemeta-to-cache-responses

Properties

headers?

optional headers: Headers | HTTPHeaders

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

Headers to add to the response.


status?

optional status: number

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

The HTTP status. Defaults to the one tRPC picks from the results.