RequestInit constructor
RequestInit({
- Object? body,
- RequestCache? cache,
- RequestCredentials? credentials,
- Object? headers,
- String? integrity,
- bool? keepalive,
- String? method,
- RequestMode? mode,
- RequestRedirect? redirect,
- String? referrer,
- ReferrerPolicy? referrerPolicy,
- AbortSignal? signal,
- dynamic window,
Implementation
factory RequestInit({
_i2.Object? body,
_i3.RequestCache? cache,
_i3.RequestCredentials? credentials,
_i2.Object? headers,
_i2.String? integrity,
_i2.bool? keepalive,
_i2.String? method,
_i3.RequestMode? mode,
_i3.RequestRedirect? redirect,
_i2.String? referrer,
_i3.ReferrerPolicy? referrerPolicy,
_i3.AbortSignal? signal,
_i2.dynamic window,
}) =>
RequestInit._(
body: body ?? _i6.undefined ?? _i6.undefined,
cache: cache?.name ?? _i6.undefined,
credentials: credentials?.name ?? _i6.undefined,
headers: headers ?? _i6.undefined,
integrity: integrity,
keepalive: keepalive,
method: method,
mode: mode?.name ?? _i6.undefined,
redirect: redirect?.name ?? _i6.undefined,
referrer: referrer,
referrerPolicy: referrerPolicy?.name ?? _i6.undefined,
signal: signal ?? _i6.undefined,
window: window,
);