HttppHeaders class

Constructors

HttppHeaders({Map<String, String>? provided})
HttppHeaders.typical({String? bearerToken})

Properties

hashCode int
The hash code for this object.
no setterinherited
map Map<String, String>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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