Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Request

The Request class as specified by WHATWG

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

Hierarchy

Properties

backend: string
body: null | ReadableStream<Uint8Array>
bodyUsed: boolean
headers: Headers

Returns a Headers object consisting of the headers associated with request.

method: string

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

url: string

Returns the URL of request as a string.

Methods

  • arrayBuffer(): Promise<ArrayBuffer>
  • json(): Promise<any>
  • Returns Promise<any>

  • text(): Promise<string>
  • Returns Promise<string>

Generated using TypeDoc