RequestInit

BFChainAugust 11, 2023
  • Interface
  • RequestInit
About 1 min

Initialization data for the request

Property

  • body

    optional attributes; the subject data of the request; Legal types for attribute values are;

    BodyInit

    null

  • cache

    optional attributes; the requested cache mode; Legal types for attribute values are RequestCacheopen in new window

  • credentials

    optional attributes Define rules for sending cookies The legal type of attribute value is RequestCredentialsopen in new window

  • headers

    optional attributes; The header data of the request; Legal types for attribute values are HeadersInit

  • integrity

    optional attributes the requested subresource; The legal type of attribute value is string;

  • keepalive

    optional attributes; Whether to keep alive; initiate multiple requests on the same TCP connection; The legal type of attribute value is boolean;

  • method

    optional attributes; the requested method; Legal values are: "GET"

    "POST"

    "PUT"

    "DELETE"

    "PATCH"

    "OPTIONS"

    "HEAD"

    "CONNECT"

    "TRACE"

  • mode

    optional attributes; Define the same-origin policy; The type of attribute value is RequestMode

  • redirect

    optional attributes; How to handle redirects The attribute value is of type RequestRedirectopen in new window

  • referrer

    Priority who initiated the request; The type that the attribute refers to is string;

  • referrerPolicy

    optional attributes; Set the referrer policy of the request; The type of attribute value is ReferrerPolicyopen in new window

  • signal

    optional attributes; Set the termination signal of the request; The type of attribute value is AbortSignalopen in new window or null;

  • widow

    optional attributes; The window used to contact the association; The attribute value can only be null;

Method

  • none

Event

  • none

Platform Compatibility

Property/Method/EventAndroidIOSDesktop-DevDesktop
bodyX
cacheX
credentialsX
headersX
integrityX
keepaliveX
methodX
modeX
referrerX
referrerPolicyX
signalX
widowX

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.13.0