AuthHeaders class
Constructors
- AuthHeaders()
-
AuthHeaders.from(Map<
String, AuthHeaderItem> items) - AuthHeaders.fromHeaderStr(String? header)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
-
items
→ Map<
String, AuthHeaderItem> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addItem(
AuthHeaderItem item, {bool omitIfPresent = true}) → void -
containsScheme(
String scheme) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeItemByScheme(
String scheme) → AuthHeaderItem? -
toAuthorizationHeader(
) → Map< String, String> - Value returned by this function shall be added to request headers
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
addItemToHeaderStr(
String? header, AuthHeaderItem newItem, {bool omitIfPresent = true}) → String -
Adds new authorisation item
newItem
to the authorisation headerheader
-
headerStrToItems(
String? header) → Map< String, AuthHeaderItem> -
Creates and returns a Map of scheme to
AuthHeaderItem
from givenheader
-
removeSchemeFromHeaderStr(
String? header, String scheme) → String - Removed the requested scheme from the header