Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an HTTP request.

Hierarchy

Implements

Index

Constructors

constructor

  • Constructs a new HTTP request.

    Parameters

    • resource: string | Request | Stringfiable

      The resource to fetch. Can either be a URL or another request that is then cloned.

    • Optional init: RequestInit

      Optional request initialization.

    Returns Request

Accessors

body

bodyUsed

  • get bodyUsed(): boolean
  • Returns whether the body was used.

    Returns boolean

headers

method

redirect

url

  • get url(): string
  • Returns the request's URL.

    Returns string

Generated using TypeDoc