Header class

Shortcut for declaring a request header Parameter.

Inheritance

Constructors

const

Properties

Inject the value of a request cookie.
final, inherited
defaultValue → dynamic
Specify a default value.
final, inherited
error → dynamic
Returns an error that can be thrown when the parameter is not present.
read-only, inherited
hashCode → int
The hash code for this object.
read-only, inherited
Inject the value of a request header.
final, inherited
match → dynamic
Only execute the handler if the value of this parameter matches the given value.
final, inherited
query → String
Inject the value of a key from the query.
final, inherited
required → bool
If true (default), then an error will be thrown if this parameter is not present.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
session → String
Inject the value of a key from the session.
final, inherited

Methods

getValue(RequestContext req) → dynamic
Obtains a value for this parameter from a RequestContext.
inherited
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 ==(dynamic other) → bool
The equality operator.
inherited