Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

BodyInit

BodyInit: ArrayBufferView | ArrayBuffer | ReadableStream | string | URLSearchParams | null

Constructor parameter for the Fetch API Body and its implementations (Request, and Response)

CacheOverrideMode

CacheOverrideMode: "none" | "pass" | "override"

Set the cache override mode on a request

None Do not override the behavior specified in the origin response’s cache control headers. Pass Do not cache the response to this request, regardless of the origin response’s headers. Override Override particular cache control settings using a CacheOverride object.

The origin response’s cache control headers will be used for ttl and stale_while_revalidate if None.

HeadersInit

HeadersInit: Headers | string[][] | {}

ReadableStreamController

ReadableStreamController<T>: ReadableStreamDefaultController<T>

Type parameters

  • T

ReadableStreamDefaultReadResult

Type parameters

  • T

ReadableStreamReader

ReadableStreamReader<T>: ReadableStreamDefaultReader<T>

Type parameters

  • T

RequestInfo

RequestInfo: string | Request

Constructor parameter for the Fetch API Request

Usually this an URL to the resource you are requesting.

Transferable

Transferable: ArrayBuffer

Variables

CacheOverride

CacheOverride: { prototype: CacheOverride }

Type declaration

Crypto

Crypto: { prototype: Crypto }

Type declaration

ReadableStream

ReadableStream: { prototype: ReadableStream<any> }

The ReadableStream class as specified by WHATWG

see

ReadableStream on MDN

Type declaration

ReadableStreamDefaultController

ReadableStreamDefaultController: { prototype: ReadableStreamDefaultController<any> }

Type declaration

ReadableStreamDefaultReader

ReadableStreamDefaultReader: { prototype: ReadableStreamDefaultReader<any> }

Type declaration

TransformStream

TransformStream: { prototype: TransformStream<any, any> }

The TransformStream class as specified by WHATWG

see

TransformStream on MDN

Type declaration

TransformStreamDefaultController

TransformStreamDefaultController: { prototype: TransformStreamDefaultController<any> }

Type declaration

WorkerLocation

WorkerLocation: { prototype: WorkerLocation }

Type declaration

WritableStream

WritableStream: { prototype: WritableStream<any> }

The WritableStream class as specified by WHATWG

see

WritableStream on MDN

Type declaration

WritableStreamDefaultController

WritableStreamDefaultController: { prototype: WritableStreamDefaultController }

Type declaration

WritableStreamDefaultWriter

WritableStreamDefaultWriter: { prototype: WritableStreamDefaultWriter<any> }

Type declaration

console

console: Console

The global Console instance

crypto

crypto: Crypto

fastly

fastly: Fastly

The global instance of the Fastly builtin

location

location: WorkerLocation

Functions

addEventListener

  • addEventListener(type: "fetch", listener: (event: FetchEvent) => void): void

fetch

  • Fetch resources from backends.

    Note: Compute@Edge requires all outgoing requests to go to a predefined backend, passed in via the backend property on the init object.

    Note: Can only be used when processing requests, not during build-time initialization.

    see

    fetch on MDN

    Parameters

    • resource: RequestInfo

      The resource to fetch, either a URL string or a Request object

    • Optional init: RequestInit

      An object containing settings to apply to the request

    Returns Promise<Response>

queueMicrotask

structuredClone

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method

Generated using TypeDoc