Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashleygwilliams/worker-template-requests
https://github.com/ashleygwilliams/worker-template-requests
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ashleygwilliams/worker-template-requests
- Owner: ashleygwilliams
- Created: 2019-05-22T18:59:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T17:53:13.000Z (over 5 years ago)
- Last Synced: 2024-10-10T20:23:07.157Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cloudflare - Incoming Request - Examples of reading in a POST request body of type JSON and form-data. (Workers / Recipes)
- awesome-cloudflare - Incoming Request - Examples of reading in a POST request body of type JSON and form-data. (Workers / Recipes)
README
## Requests
Examples of reading in a POST request body of type JSON, form-data, and blobs before it reaches the origin server.
[`index.js`](https://github.com/cloudflare/worker-template-requests/blob/master/index.js) is the content of the Workers script.
Live Demos are hosted on `workers-tooling.cf/demos/requests`:
[Demo](http://workers-tooling.cf/demos/requests/)#### Wrangler
To generate using [wrangler](https://github.com/cloudflare/wrangler)```
wrangler generate myApp https://github.com/cloudflare/worker-template-requests
```#### Serverless
To deploy using serverless add a [`serverless.yml`](https://serverless.com/framework/docs/providers/cloudflare/) file.