Header class

Passes a value to the 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
  • @immutable

Constructors

const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
Name is used to bind a method parameter to a header name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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