Header class

Pass value to header of the request Use the name of the method parameter or the name specified in the annotation.

@Get()
Future<Response> fetch(@Header() String foo);
Annotations

Constructors

const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Name is used to bind a method parameter to the header name you want. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited