An open API service indexing awesome lists of open source software.

https://github.com/chronark/edge-functions-examples2


https://github.com/chronark/edge-functions-examples2

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

![Netlify examples](https://user-images.githubusercontent.com/5865/159468750-df1c2783-39b2-40da-9c0f-971f72a7ea3f.png)

# 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)

---