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

https://github.com/ys-sudo/edge-functions-examples


https://github.com/ys-sudo/edge-functions-examples

Last synced: 3 months 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](https://www.netlify.com/products/?utm_campaign=devex&utm_source=edge-functions-examples&utm_medium=github&utm_content=Edge%20Functions%20Product%20Page#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)

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

- [HTML transformation](/pages/htmlrewriter)
- [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)

## Streams
- [Long-running edge functions](/pages/long-running)
- [Server-sent events](/pages/server-sent-events)

## WebAssembly
- [Edge WebAssembly](/pages/wasm)

## Environment and debugging

- [Write to the logs](/pages/log)
- [Use environment variables](/pages/environment)

---

## Deploy this site to Netlify

Click this button to deploy this site automatically to your Netlify account.

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/edge-functions-examples&utm_campaign=devex&utm_source=edge-functions-examples&utm_medium=web&utm_content=Deploy%20Edge%20Functions%20Examples%20to%20Netlify)