Skip to content

IrohHttpFetchInit

Defined in: src/client/httpi.ts:14

Per-request controls understood by an iroh-http/2 Fetch implementation.

  • RequestInit
optional body?: BodyInit | null;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2554

A BodyInit object or null to set request’s body.

RequestInit.body

optional cache?: RequestCache;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2556

A string indicating how the request will interact with the browser’s cache to set request’s cache.

RequestInit.cache

optional credentials?: RequestCredentials;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2558

A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request’s credentials.

RequestInit.credentials

optional decompress?: boolean;

Defined in: src/client/httpi.ts:22

Preserve wire Content-Encoding for VGI’s HTTP codec.


optional directAddrs?: string[];

Defined in: src/client/httpi.ts:16

Known direct QUIC addresses for the remote endpoint.


optional headers?: HeadersInit;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2560

A Headers object, an object literal, or an array of two-item arrays to set request’s headers.

RequestInit.headers

optional integrity?: string;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2562

A cryptographic hash of the resource to be fetched by request. Sets request’s integrity.

RequestInit.integrity

optional keepalive?: boolean;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2564

A boolean to set request’s keepalive.

RequestInit.keepalive

optional maxResponseBodyBytes?: number;

Defined in: src/client/httpi.ts:24

Maximum response bytes buffered/read by the native adapter.


optional method?: string;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2566

A string to set request’s method.

RequestInit.method

optional mode?: RequestMode;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2568

A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request’s mode.

RequestInit.mode

optional priority?: RequestPriority;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2569

RequestInit.priority

optional redirect?: RequestRedirect;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2571

A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request’s redirect.

RequestInit.redirect

optional referrer?: string;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2573

A string whose value is a same-origin URL, “about:client”, or the empty string, to set request’s referrer.

RequestInit.referrer

optional referrerPolicy?: ReferrerPolicy;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2575

A referrer policy to set request’s referrerPolicy.

RequestInit.referrerPolicy

optional relayUrl?: string;

Defined in: src/client/httpi.ts:18

Known home-relay URL for the remote endpoint.


optional requestTimeout?: number;

Defined in: src/client/httpi.ts:20

Complete iroh-http request deadline in milliseconds.


optional signal?: AbortSignal | null;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2577

An AbortSignal to set request’s signal.

IrohHttpFetchInit.signal


optional window?: null;

Defined in: docs/node_modules/typescript/lib/lib.dom.d.ts:2579

Can only be null. Used to disassociate request from any Window.

RequestInit.window