Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface XHRNetworkOptions

Hierarchy

  • XHRNetworkOptions

Index

Properties

Optional body

body: null | Document | BodyInit

method

method: "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH"

The HTTP method by which to make the request

prerequest

prerequest: (xhr: XMLHttpRequest) => void

Execute after opening but before sending the XHR {@param xhr}

Type declaration

    • (xhr: XMLHttpRequest): void
    • Parameters

      • xhr: XMLHttpRequest

      Returns void

resolveCondition

resolveCondition: Predicate<XMLHttpRequest>

Determines when to resolve the Promise instead of rejecting

Defaults to ensuring the status is in [200, 300)