RequestInit constructor

RequestInit({
  1. String method,
  2. HeadersInit headers,
  3. BodyInit? body,
  4. String referrer,
  5. ReferrerPolicy referrerPolicy,
  6. RequestMode mode,
  7. RequestCredentials credentials,
  8. RequestCache cache,
  9. RequestRedirect redirect,
  10. String integrity,
  11. bool keepalive,
  12. AbortSignal? signal,
  13. RequestDuplex duplex,
  14. RequestPriority priority,
  15. JSAny? window,
  16. AttributionReportingRequestOptions attributionReporting,
  17. IPAddressSpace targetAddressSpace,
  18. bool sharedStorageWritable,
  19. PrivateToken privateToken,
  20. bool adAuctionHeaders,
})

Implementation

external factory RequestInit({
  String method,
  HeadersInit headers,
  BodyInit? body,
  String referrer,
  ReferrerPolicy referrerPolicy,
  RequestMode mode,
  RequestCredentials credentials,
  RequestCache cache,
  RequestRedirect redirect,
  String integrity,
  bool keepalive,
  AbortSignal? signal,
  RequestDuplex duplex,
  RequestPriority priority,
  JSAny? window,
  AttributionReportingRequestOptions attributionReporting,
  IPAddressSpace targetAddressSpace,
  bool sharedStorageWritable,
  PrivateToken privateToken,
  bool adAuctionHeaders,
});