Code
HTTP
// This val responds to HTTP requests with "Hello, World!".
// It uses Deno's built-in HTTP server.
export default async function main(req: Request): Promise<Response> {
return new Response("Hello, World!", {
headers: { "Content-Type": "text/plain" },
});
}
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!
janpaul123-valle_tmp_33622208006880749293871176826736.web.val.run
Updated: July 17, 2024