Skip to content

HttpGatewayConfig

Defined in: packages/pic/src/pocket-ic-types.ts:123

Options for the HTTP gateway created together with a PocketIC instance.

optional domains: string[]

Defined in: packages/pic/src/pocket-ic-types.ts:137

The domains the gateway serves canisters on. Defaults to localhost.


optional httpsConfig: HttpsConfig

Defined in: packages/pic/src/pocket-ic-types.ts:142

Serves the gateway over HTTPS with the given certificate and key.


optional ipAddr: string

Defined in: packages/pic/src/pocket-ic-types.ts:127

The IP address the gateway listens on. Defaults to 127.0.0.1.


optional port: number

Defined in: packages/pic/src/pocket-ic-types.ts:132

The port the gateway listens on. Defaults to a free port.