AuthorizationHeader class abstract
An abstract base class representing an HTTP Authorization header.
This class serves as a blueprint for different types of authorization headers, such as Bearer and Basic, by defining a method to return the header value. The concrete subclasses handle specific header formats.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerValue → String
-
Returns the value of the Authorization header as a string.
no setter
- 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
Static Methods
-
parse(
String value) → AuthorizationHeader - Parses and creates the appropriate AuthorizationHeader subclass based on the provided authorization string from HTTP headers.
Constants
-
codec
→ const HeaderCodec<
AuthorizationHeader>