host property

  1. @override
String? host
override

The value of the hostHeader header, if any.

Implementation

@override
String? get host {
  if (_host != null) {
    return _host!.host;
  } else if (_data.containsKey(HttpHeaders.hostHeader)) {
    _host = Uri.parse(_data[HttpHeaders.hostHeader]!.join(','));
    return _host!.host;
  } else {
    return null;
  }
}
void host=(String? _host)
inherited

The value of the hostHeader header, if any.

Implementation

String? host;