# Type Alias: NodeHTTPCreateContextFnOptions<TRequest, TResponse>

> 

> **NodeHTTPCreateContextFnOptions**\<`TRequest`, `TResponse`\>: `object`

Defined in: [packages/server/src/adapters/node-http/types.ts:128](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/adapters/node-http/types.ts#L128)

What `createContext` gets in the Node.js adapters: `req`, `res` and the
request's `info`.

## Type Parameters

| Type Parameter |
| ------ |
| `TRequest` |
| `TResponse` |

## Type declaration

### info

> **info**: [`TRPCRequestInfo`](https://trpc.io/docs/typedoc/server/http/interfaces/TRPCRequestInfo.md)

### req

> **req**: `TRequest`

### res

> **res**: `TResponse`

## See

https://trpc.io/docs/server/context#creating-the-context
