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