Delivering a Serverless API in 10 minutes using Workers
The author discusses their experience using Cloudflare Workers to create a serverless API endpoint for testing website security status. They explain how they used simple logic and requirements to develop the endpoint, which determines whether a given domain will automatically redirect to https or not. The author highlights the ease of setting up an endpoint with Cloudflare Workers compared to traditional methods, as well as some key features such as following redirects and handling CORS headers. They also provide code examples for the worker and instructions on how to test it using cURL.
Company
Cloudflare
Date published
June 28, 2018
Author(s)
Rita Kozlov
Word count
1443
Hacker News points
None found.
Language
English