fetch

Functionin globals@fastly/js-compute 4.0.0View source
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>

Fetch resources from backends.

Note: Fastly Compute 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 also

Parameters

input: RequestInfo | URL
init: RequestInitoptional
  • An object containing settings to apply to the request

Returns