Jasmine Boba'teaJ
Denoβ€’13mo agoβ€’
5 replies
Jasmine Boba'tea

What is the best way to get the full url that Deno.serve() is running on?

If I have:

Deno.serve(
    { port: 1993, hostname: '0.0.0.0' }, 
    (_req) => new Response("Hello, world")
);


I know the url will be:
http://0.0.0.0:1993
. Is there something in the
Deno.*
API that I can reference to get it though?
Was this page helpful?