Public
Like
2
HTTP_examples
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data ā all from the browser, and deployed in milliseconds.
https://valdottown--f4add508276111f08789569c3dd06744.web.val.run
HTTP triggers let you expose an API or website from your file.
They are built on the web-standard Request and Response objects, so are compatible with a number of web frameworks like Hono and Peko.
These handlers need to export a function that takes a Request
object
as the first parameter and returns a Response
object. The function
can be asynchronous.
This is an example repository on HTTP triggers in Val Town.
Detailed documentation š: https://docs.val.town/vals/http/
HTTP
- headersExamplevaldottown--79ā¦44.web.val.run
- htmlExamplevaldottown--74ā¦44.web.val.run
- jsonBodyParsingvaldottown--84ā¦44.web.val.run
- jsonOkExamplevaldottown--6aā¦44.web.val.run
- queryParamsvaldottown--80ā¦44.web.val.run
- honovaldottown--32ā¦44.web.val.run
- preactvaldottown--1eā¦44.web.val.run
- reactvaldottown--22ā¦44.web.val.run
- solidvaldottown--2cā¦44.web.val.run
- vuevaldottown--27ā¦44.web.val.run
- exampleHTTPvaldottown--f4add508276111f08789569c3dd06744.web.val.run
- fetsExamplevaldottown--b0ā¦44.web.val.run
- honoExamplevaldottown--86ā¦44.web.val.run
- ittyExamplevaldottown--a6ā¦44.web.val.run
- nhttpExamplevaldottown--93ā¦44.web.val.run
- pekoExamplevaldottown--8dā¦44.web.val.run