Skip to main content

SafeResponse

@forge/monorepo


@forge/monorepo / backend/src / SafeResponse

Type Alias: SafeResponse

SafeResponse = object

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

Properties

body

readonly body: string

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


chain

readonly chain: readonly string[]

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

Every URL in the chain, first to last. One entry when there was no redirect.


headers

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

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


status

readonly status: number

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


truncated

readonly truncated: boolean

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

True when maxBytes stopped the read before the body ended.


url

readonly url: string

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