WebTransportOptions class

Fetch credentials, redirect, upload limit and same-origin XSRF options.

Constructors

WebTransportOptions({String credentials = 'same-origin', String redirect = 'follow', String cache = 'default', String referrerPolicy = 'strict-origin-when-cross-origin', int maxUploadBytes = 8 * 1024 * 1024, String? xsrfCookieName, String xsrfHeaderName = 'x-xsrf-token'})

Properties

cache → String
final
credentials → String
final
hashCode → int
The hash code for this object.
no setterinherited
maxUploadBytes → int
Maximum known-length upload buffered before calling Fetch.
final
redirect → String
final
referrerPolicy → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
xsrfCookieName → String?
Opt-in cookie to copy to xsrfHeaderName for same-origin unsafe methods.
final
xsrfHeaderName → String
final

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