Skip to main content

SafeFetchOptions

@retinue/monorepo


@retinue/monorepo / backend/src / SafeFetchOptions

Type Alias: SafeFetchOptions

SafeFetchOptions = object

Defined in: backend/src/toolkit/ssrf.ts:226

Properties​

headers?​

readonly optional headers?: Readonly<Record<string, string>>

Defined in: backend/src/toolkit/ssrf.ts:230


maxBytes?​

readonly optional maxBytes?: number

Defined in: backend/src/toolkit/ssrf.ts:227


maxRedirects?​

readonly optional maxRedirects?: number

Defined in: backend/src/toolkit/ssrf.ts:229


resolve?​

readonly optional resolve?: Resolve

Defined in: backend/src/toolkit/ssrf.ts:231


timeoutMs?​

readonly optional timeoutMs?: number

Defined in: backend/src/toolkit/ssrf.ts:228


transport?​

readonly optional transport?: SafeTransport

Defined in: backend/src/toolkit/ssrf.ts:233

Injected by tests, so "no request left the process" can be asserted rather than hoped for.