Header constructor

const Header([
  1. String? name
])

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);

Implementation

const Header([this.name]);