host(Req :: cowboy_req:req()) -> Host :: binary()
cowboy_req:host - URI host name
host(Req :: cowboy_req:req()) -> Host :: binary()
Return the host name of the effective request URI.
The host name can also be obtained using pattern matching:
#{host := Host} = Req.
The Req object.
The host name is returned as a lowercase binary string. It is case insensitive.
Host = cowboy_req:host(Req).
cowboy_req(3), cowboy_req:binding(3), cowboy_req:bindings(3), cowboy_req:host_info(3)
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via BountySource. These funds are used to cover the recurring expenses like dedicated servers or domain names.