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://matthewmateo--019a0f1fc26673a6976df1ed270a5cc4.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
- headersExamplematthewmateo--01…dc.web.val.run
- htmlExamplematthewmateo--01…91.web.val.run
- jsonBodyParsingmatthewmateo--01…ab.web.val.run
- jsonOkExamplematthewmateo--01…fa.web.val.run
- queryParamsmatthewmateo--01…76.web.val.run
- honomatthewmateo--01…bb.web.val.run
- preactmatthewmateo--01…ef.web.val.run
- reactmatthewmateo--01…39.web.val.run
- solidmatthewmateo--01…fb.web.val.run
- vuematthewmateo--01…f4.web.val.run
- exampleHTTPmatthewmateo--01…c4.web.val.run
- fetsExamplematthewmateo--01…f5.web.val.run
- honoExamplematthewmateo--01…b7.web.val.run
- ittyExamplematthewmateo--01…6f.web.val.run
- nhttpExamplematthewmateo--01…5e.web.val.run
- pekoExamplematthewmateo--01…e2.web.val.run