HttpRouteHeaderModifier class
The specification for modifying HTTP header in HTTP request and HTTP response.
Constructors
-
HttpRouteHeaderModifier({Input<
Map< ? add, Input<String, String> >List< ? remove, Input<String> >Map< ? set})String, String> > -
Creates a new HttpRouteHeaderModifier.
addAdd the headers with given map where key is the name of the header, value is the value of the header.removeRemove headers (matching by header names) specified in the list.setCompletely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.const -
HttpRouteHeaderModifier.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
add
→ Input<
Map< ?String, String> > -
Add the headers with given map where key is the name of the header, value is the value of the header.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
remove
→ Input<
List< ?String> > -
Remove headers (matching by header names) specified in the list.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
set
→ Input<
Map< ?String, String> > -
Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited