HttpxHeaders class
Constructors
-
HttpxHeaders([Iterable<
String> ? unfoldableNames]) -
factory
-
HttpxHeaders.fromHttpHeaders(HttpHeaders httpHeaders, [Iterable<
String> ? unfoldableNames]) -
factory
-
HttpxHeaders.fromMap(Map<
HttpxHeaderName, dynamic> map, [Iterable<HttpxHeaderName> ? unfoldableNames]) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
HttpxHeaderName name, HttpxHeaderValue value, {bool ifNotPresent = false}) → void -
addAll(
HttpxHeaderName name, HttpxHeaderValues values, {bool ifNotPresent = false}) → void -
clear(
) → void -
clone(
) → HttpxHeaders -
contains(
HttpxHeaderName name) → bool -
copyWith(
Map< HttpxHeaderName, dynamic> map, {bool add = false}) → HttpxHeaders -
getEntries(
{bool lowerCasedNames = true}) → HttpxHeadersEntries -
getFoldedEntries(
{bool lowerCasedNames = true}) → HttpxHeadersFoldedEntries -
getKeys(
{bool lowerCasedNames = true}) → Iterable< HttpxHeaderName> -
lock(
) → void -
matchAll(
HttpxHeadersEntries entries) → bool -
mutateHttpHeaders(
HttpHeaders httpHeaders, {bool clear = false}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
HttpxHeaderName name, HttpxHeaderValue value) → void -
removeAll(
HttpxHeaderName name) → void -
set(
HttpxHeaderName name, HttpxHeaderValues values, {bool ifNotPresent = false}) → void -
toString(
[bool hideSensitiveHeadersValues = true, int valueTruncateLength = 80]) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
HttpxHeaderName name) → HttpxHeaderValues? -
operator []=(
HttpxHeaderName name, HttpxHeaderValues? values) → void
Static Methods
Constants
-
kDefaultUnfoldableNames
→ const List<
HttpxHeaderName> -
kSensitiveHeadersNames
→ const List<
HttpxHeaderName>