WebTransportOptions constructor
WebTransportOptions({})
Implementation
WebTransportOptions(
{this.credentials = 'same-origin',
this.redirect = 'follow',
this.cache = 'default',
this.referrerPolicy = 'strict-origin-when-cross-origin',
this.maxUploadBytes = 8 * 1024 * 1024,
this.xsrfCookieName,
this.xsrfHeaderName = 'x-xsrf-token'}) {
if (!{'omit', 'same-origin', 'include'}.contains(credentials) ||
!{'follow', 'error', 'manual'}.contains(redirect) ||
maxUploadBytes < 0) {
throw ArgumentError('Invalid browser transport options.');
}
}