Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

BodyInit

BodyInit: ReadableStream | string | 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.

Variables

CacheOverride

CacheOverride: { prototype: CacheOverride }

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

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

fastly

fastly: Fastly

The global instance of the Fastly builtin

Functions

addEventListener

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

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>

Legend

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

Generated using TypeDoc