alephjs/aleph.js

Get HOST from http request

AlekseyMelikov opened this issue · 1 comments

Hi, I am newbie to Aleph.js. Please tell me, how can I get HOST from http request?

ije commented

you can get the host from the url field of Request: new URL(req.url).hostname