reqHost
Exports the reqHost utility method.
- Source
Requires
Methods
(inner) reqHost(req) → {string}
The reqHost utility method inspects the HTTP req[quest] object header to return the host as a string.
The host value can be logged with the reqHost
logger key.
Parameters:
Name | Type | Description |
---|---|---|
req | Object | HTTP request. |
- Source
Returns:
host
- Type:
- string