Skip to main content

SafeTransport

@retinue/monorepo


@retinue/monorepo / backend/src / SafeTransport

Type Alias: SafeTransport

SafeTransport = (input) => Promise<{ body: string; headers: Record<string, string>; status: number; truncated: boolean; }>

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

One request to one already-validated address. Injectable for tests.

Parameters​

input​

addresses​

readonly string[]

headers​

Readonly<Record<string, string>>

maxBytes​

number

timeoutMs​

number

url​

URL

Returns​

Promise<{ body: string; headers: Record<string, string>; status: number; truncated: boolean; }>