Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.15 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.15 KB

Netlify examples

Hello, World! with Netlify Edge Functions

You can use Edge Functions to return a plain HTTP text/html response. In this example, we return the string "Hello, World!" as text/html.

Code example

Edge Functions are files held in the netlify/edge-functions directory.

export default async (request) => {
  return new Response("Hello, World!", {
    headers: { "content-type": "text/html" },
  });
};

View this example on the web

Deploy to Netlify

You can deploy this and all the other examples in this repo as a site of your own to explore and experiment with, by clicking this button.

Deploy to Netlify