Skip to main content

Interface: NetworkFetchInit

Defined in: Extensions/ExtensionApiDtos.ts:873

Properties

body?

optional body?: string | ArrayBuffer | Uint8Array<ArrayBufferLike> | { json: unknown; } | { form: Record<string, string>; }

Defined in: Extensions/ExtensionApiDtos.ts:881

Body shape: a string, a binary buffer, a JSON object wrapper, or a form wrapper. The host serializes JSON/form bodies and sets Content-Type automatically when not overridden.


headers?

optional headers?: Record<string, string>

Defined in: Extensions/ExtensionApiDtos.ts:875


maxResponseBytes?

optional maxResponseBytes?: number

Defined in: Extensions/ExtensionApiDtos.ts:892

Maximum response body size in bytes. Default 10 MB, max 100 MB.


method?

optional method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD"

Defined in: Extensions/ExtensionApiDtos.ts:874


redactHeaders?

optional redactHeaders?: string[]

Defined in: Extensions/ExtensionApiDtos.ts:894

Stripped before logging. Use for things like Authorization headers.


redirect?

optional redirect?: "error" | "manual" | "follow"

Defined in: Extensions/ExtensionApiDtos.ts:889


responseType?

optional responseType?: "text" | "json" | "arrayBuffer"

Defined in: Extensions/ExtensionApiDtos.ts:890


timeoutMs?

optional timeoutMs?: number

Defined in: Extensions/ExtensionApiDtos.ts:888

Default 30000, max 120000.