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:
- Attribution Reporting
partial dictionary RequestInit { AttributionReportingRequestOptions attributionReporting; };
- Private Network Access
partial dictionary RequestInit { IPAddressSpace targetAddressSpace; };
- Shared Storage API
partial dictionary RequestInit { boolean sharedStorageWritable; };
- Private State Token API
partial dictionary RequestInit { PrivateToken privateToken; };
- Protected Audience (formerly FLEDGE)
partial dictionary RequestInit { boolean adAuctionHeaders; };
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
- Attribution Reporting refers to
RequestInit
- Private Network Access refers to
RequestInit
- Shared Storage API refers to
RequestInit
- Private State Token API refers to
RequestInit
- Protected Audience (formerly FLEDGE) refers to
RequestInit