RequestInit class

Initialization options for Request, aligned with the MDN Fetch RequestInit surface.

Constructors

RequestInit({HttpMethod? method, HeadersInit? headers, BodyInit? body, String? referrer, RequestReferrerPolicy? referrerPolicy, RequestMode? mode, RequestCredentials? credentials, RequestCache? cache, RequestRedirect? redirect, String? integrity, bool? keepalive, RequestDuplex? duplex})

Properties

body → BodyInit?
final
cache → RequestCache?
final
credentials → RequestCredentials?
final
duplex → RequestDuplex?
final
hashCode → int
The hash code for this object.
no setterinherited
headers → BodyInit?
final
integrity → String?
final
keepalive → bool?
final
method → HttpMethod?
final
mode → RequestMode?
final
redirect → RequestRedirect?
final
referrer → String?
final
referrerPolicy → RequestReferrerPolicy?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited