reqHost

Exports the reqHost utility method.

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:
NameTypeDescription
reqObject

HTTP request.

Returns:

host

Type: 
string