Skip to content

Interface: RequestInit ​

Defined in: types/desktop-engine.d.ts:4003

Properties ​

body? ​

ts
optional body?: BodyInit | null;

Defined in: types/desktop-engine.d.ts:4008

Not allowed for GET and HEAD


cache? ​

ts
optional cache?: RequestCache;

Defined in: types/desktop-engine.d.ts:4015


credentials? ​

ts
optional credentials?: string;

Defined in: types/desktop-engine.d.ts:4017

Accepted for compatibility, ignored


duplex? ​

ts
optional duplex?: "half";

Defined in: types/desktop-engine.d.ts:4010

Needed with a ReadableStream body, like in browsers


headers? ​

ts
optional headers?: HeadersInit;

Defined in: types/desktop-engine.d.ts:4006


method? ​

ts
optional method?: string;

Defined in: types/desktop-engine.d.ts:4005

GET by default


mode? ​

ts
optional mode?: string;

Defined in: types/desktop-engine.d.ts:4019

Accepted for compatibility, ignored


redirect? ​

ts
optional redirect?: RequestRedirect;

Defined in: types/desktop-engine.d.ts:4014

"follow" by default; "manual" resolves with the redirect response itself (3xx with a Location header)


signal? ​

ts
optional signal?: AbortSignal | null;

Defined in: types/desktop-engine.d.ts:4012

Aborting rejects fetch with signal.reason (an "AbortError" DOMException by default), or errors the body stream

The SDK is released under the Apache License 2.0