Public
HTTP (deprecated)
Readme

Hello world server, using http functions.

Try hitting URLs such as: /world, /world.txt, /world.json, /world.html, or even /<script>.html.

This demonstrates how you can import and compose simple functions to construct a router to route based on various aspects of a request, ie. the URL path, method, and even on media-types based on path extension or the Accept header.

See routing functions, and response helpers on JSR.

For a more detailed guide on building a Deno app, including things like fs based routing, with these fns see... https://jollytoad.deno.dev/blog/http_getting_started

Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
jollytoad-helloworld.web.val.run
June 28, 2024