#hosts param

2 messages · Page 1 of 1 (latest)

narrow reef
#

hi everyone, can someone help me find hostsparam code and how does it work? I am trying to set some host params manually using a middleware, but req.hosts is undefined and I just dont know how, I cant even find the code in github, anybody?

limpid marlin
#

There's host on req, which refers to the hostname which was used to perform the request, and is provided by the underlying http server, which receives it from the http request.
I'm not aware about hosts.
What are you trying to achieve?