Welcome to the EdgeOne
developer hub

Welcome to the EdgeOne developer hub

Learn by Products

Acceleration
Security
Serverless
Media
Acceleration

Lightning Fast

EdgeOne has deployed over 3200+ nodes worldwide, Excellent global network performance.

Features

  • featureGlobal CDN PoP
  • featureGlobal Network Bandwidth
  • featureIntelligent Acceleration

Build with Edge Functions

  • Return an HTML Page
  • Return JSON
  • Request Header Authentication
  • Streaming Responses
  • Image Adaptive WebP
  • Referer-based hotlink protection
  • HMAC Digital Signature
  • Rename downloaded files
const html = `
  <!DOCTYPE html>
  <body>
    <h1>Hello World</h1>
    <p>This markup was generated by TencentCloud Edge Functions.</p>
  </body>
`;

async function handleRequest() {
  return new Response(html, {
    headers: {
      'content-type': 'text/html; charset=UTF-8',
    },
  });
}

addEventListener('fetch', event => {
  event.respondWith(handleRequest());
});