https://github.com/chronark/edge-functions-examples2
https://github.com/chronark/edge-functions-examples2
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/chronark/edge-functions-examples2
- Owner: chronark
- Created: 2022-04-25T06:28:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-25T06:29:02.000Z (over 4 years ago)
- Last Synced: 2025-03-16T14:39:58.536Z (over 1 year ago)
- Language: JavaScript
- Size: 154 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Netlify Edge Functions Examples
Explore these examples here: https://edge-functions-examples.netlify.app/
## Responses
- [Hello, world](/pages/hello)
- [Return JSON](/pages/json)
- [Return an image](/pages/image)
- [Write to the logs](/pages/log)
## Rewrites and proxies
- [Rewrite responses from another URL](/pages/rewrite)
- [Proxy requests to another source](/pages/proxy-requests)
## HTTP Headers
- [Set custom HTTP request headers](/pages/set-request-header)
- [Set custom HTTP response headers](/pages/set-response-header)
## Transforming responses
- [Text transformation](/pages/transform)
- [Content includes](/pages/include)
## Geolocation
- [Determine a user's location](/pages/geolocation)
- [Block content according to country](/pages/country-block)
- [Serve localized content](/pages/localized-content)
## Cookies
- [Set cookies](/pages/cookies-set)
- [Read cookies](/pages/cookies-read)
- [Delete cookies](/pages/cookies-delete)
- [Set up an A/B test using cookies](/pages/abtest)
---