HttppHeaders class
Constructors
-
HttppHeaders({Map<
String, String> ? provided}) - HttppHeaders.typical({String? bearerToken})
Properties
Methods
-
accept(
String? accept) → HttppHeaders -
add(
String name, String? value) → HttppHeaders -
addAll(
Map< String, String> headers) → HttppHeaders -
auth(
String? token, {String prefix = "Bearer "}) → HttppHeaders -
cacheControl(
String? cacheControl) → HttppHeaders -
contentType(
String? contentType) → HttppHeaders -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String name) → HttppHeaders -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- Accept → const String
- Authorization → const String
- CacheControl → const String
- ContentType → const String