Header class
Annotate methods with constant headers
@Route.get('/api/v0/todos')
@Header('accept', 'application/json')
@Header('cache', 'never')
Future<List<Todo>> getTodos();
Constructors
- Header(String key, [String? value])
-
const
- Header.acceptJson()
-
const
- Header.contentTypeJson()
-
const
Properties
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