WebCookieManager class

A CookieManager implementation for web browsers using document.cookie.

This implementation leverages the browser's native cookie handling and does not support token-in-URL functionality, relying instead on automatic cookie transmission.

Implemented types

Constructors

WebCookieManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
interceptor → Interceptor
Returns a Dio interceptor for handling cookies.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsTokenInUrl bool
Indicates whether this implementation supports token-in-URL functionality.
no setteroverride

Methods

buildUrlWithToken(String url) String
Builds a URL with the token included as a query parameter.
override
deleteAllCookies() → void
Deletes all cookies globally across the domain.
override
deleteCookies(Uri uri) → void
Deletes all cookies for a specific URI.
override
getSingleCookie(Uri uri, String name) Cookie?
Retrieves a single cookie by its name for a specific URI. Returns null if the cookie is not found.
override
loadCookies(Uri uri) List<Cookie>
Loads all cookies available for the current domain.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveCookies(Uri uri, List<Cookie> cookies) → void
Saves cookies to the browser for a specific URI.
override
toString() String
A string representation of this object.
inherited

Operators

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