host method

Future<String> host()

The Host header this request was addressed to.

A client sends it, so compare it against names you serve rather than building a URL out of it.

Implementation

Future<String> host() => extractors.host().require(this);