alephjs / aleph.js

The Full-stack Framework in Deno.

Home Page:https://alephjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get HOST from http request

AlekseyMelikov opened this issue · comments

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

commented

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