WebIDLpedia

RequestInit dictionary

Definition

Fetch Standard defines RequestInit



dictionary RequestInit {
  ByteString method;
  HeadersInit headers;
  BodyInit? body;
  USVString referrer;
  ReferrerPolicy referrerPolicy;
  RequestMode mode;
  RequestCredentials credentials;
  RequestCache cache;
  RequestRedirect redirect;
  DOMString integrity;
  boolean keepalive;
  AbortSignal? signal;
  RequestDuplex duplex;
  RequestPriority priority;
  any window; // can only be set to null
};

This dictionary is extended in the following specifications:

Consolidated IDL (across partials)


dictionary RequestInit {
  ByteString method;
  HeadersInit headers;
  BodyInit? body;
  USVString referrer;
  ReferrerPolicy referrerPolicy;
  RequestMode mode;
  RequestCredentials credentials;
  RequestCache cache;
  RequestRedirect redirect;
  DOMString integrity;
  boolean keepalive;
  AbortSignal? signal;
  RequestDuplex duplex;
  RequestPriority priority;
  any window;
  AttributionReportingRequestOptions attributionReporting;
  IPAddressSpace targetAddressSpace;
  boolean sharedStorageWritable;
  PrivateToken privateToken;
  boolean adAuctionHeaders; // can only be set to null
};

Referring IDL interfaces/dictionaries

Referring specifications