[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/core](../../README) / [http](../README) / NegotiateMap

# Interface: NegotiateMap\<TWeb, TJson, TCli\>

Defined in: [http/negotiate.ts:159](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/http/negotiate.ts#L159)

The per-channel handlers passed to `negotiate()`; `cli` falls back to `json` when omitted.

## Type Parameters

### TWeb

`TWeb` = `void`

### TJson

`TJson` = `void`

### TCli

`TCli` = `void`

## Properties

### web

> **web**: (`web`) => `TWeb` \| `Promise`\<`TWeb`\>

Defined in: [http/negotiate.ts:160](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/http/negotiate.ts#L160)

#### Parameters

##### web

[`WebContext`](WebContext)

#### Returns

`TWeb` \| `Promise`\<`TWeb`\>

***

### json

> **json**: (`api`) => `TJson` \| `Promise`\<`TJson`\>

Defined in: [http/negotiate.ts:161](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/http/negotiate.ts#L161)

#### Parameters

##### api

[`ApiContext`](ApiContext)

#### Returns

`TJson` \| `Promise`\<`TJson`\>

***

### cli?

> `optional` **cli?**: (`cli`) => `TCli` \| `Promise`\<`TCli`\>

Defined in: [http/negotiate.ts:162](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/http/negotiate.ts#L162)

#### Parameters

##### cli

[`CliContext`](CliContext)

#### Returns

`TCli` \| `Promise`\<`TCli`\>
