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://kilocode--019834d7e878757d97a33cacd2f79a02.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
- headersExamplekilocode--01…f2.web.val.run
- htmlExamplekilocode--01…bb.web.val.run
- jsonBodyParsingkilocode--01…4a.web.val.run
- jsonOkExamplekilocode--01…08.web.val.run
- queryParamskilocode--01…ee.web.val.run
- honokilocode--01…c4.web.val.run
- preactkilocode--01…24.web.val.run
- reactkilocode--01…c8.web.val.run
- solidkilocode--01…fd.web.val.run
- vuekilocode--01…e8.web.val.run
- exampleHTTPkilocode--01…02.web.val.run
- fetsExamplekilocode--01…ae.web.val.run
- honoExamplekilocode--01…a8.web.val.run
- ittyExamplekilocode--01…ff.web.val.run
- nhttpExamplekilocode--01…bc.web.val.run
- pekoExamplekilocode--01…6b.web.val.run