aleph.js icon indicating copy to clipboard operation
aleph.js copied to clipboard

Get HOST from http request

Open AlekseyMelikov opened this issue 2 years ago • 1 comments
trafficstars

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

AlekseyMelikov avatar Mar 05 '23 04:03 AlekseyMelikov

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

ije avatar Mar 05 '23 04:03 ije