# http

> `const` **http**: `object`

Defined in: [sdk/js/src/api.ts:121](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/api.ts#L121)

HTTPS to hosts in the bot's `network` grant, and `http://` or `https://` to the exact
`host:port` addresses of its `local_network` grant. The host makes the request and checks
the URL; the SDK passes it through.

## Type Declaration

### fetch()

> **fetch**(`url`, `init?`): [`HttpResponse`](/docs/reference/js/zaun-bot/interfaces/httpresponse/)

#### Parameters

##### url

`string`

##### init?

###### body?

`string` \| `Uint8Array`\<`ArrayBufferLike`\>

###### headers?

`Record`\<`string`, `string`\>

###### method?

`string`

###### timeoutMs?

`number`

#### Returns

[`HttpResponse`](/docs/reference/js/zaun-bot/interfaces/httpresponse/)
