Class Request<CfHostMetadata, Cf>

Type Parameters

Hierarchy (view full)

Constructors

Properties

body: ReadableStream<any>
bodyUsed: boolean
cf?: Cf
fetcher: Fetcher<undefined, never>
headers: Headers

Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.

MDN Reference

integrity: string

Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]

MDN Reference

keepalive: boolean

Returns a boolean indicating whether or not request can outlive the global in which it was created.

MDN Reference

method: string

Returns request's HTTP method, which is "GET" by default.

MDN Reference

redirect: string

Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.

MDN Reference

signal: AbortSignal

Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.

MDN Reference

url: string

Returns the URL of request as a string.

MDN Reference

Methods

  • Returns Promise<ArrayBuffer>

  • Returns Promise<Blob>

  • Type Parameters

    • T

    Returns Promise<T>

  • Returns Promise<string>