valle_tmp_33622208006880749293871176826736
HTTP (deprecated)
v0
Preview
1
2
3
4
5
6
7
8
9
// 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"
}
,
}
)
;
}
Preview