Limited Time Free!  Experience website acceleration and advanced security protection!
Get Started Now 

Welcome to the EdgeOne
developer hub

Welcome to the EdgeOne developer hub

Learn by Products

AccelerationAcceleration
SecuritySecurity
ServerlessServerless
MediaMedia
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 HTML
  • Return JSON
  • Request Header Authentication
  • Streaming Response
  • Image Adaptive WebP
  • Referer-based hotlink protection
  • HMAC Digital Signature
  • Rename downloaded files
const HTML_DATA = `
<html>
  <body>
    <h1>Hello World</h1>
    <p>This markup was generated by TencentCloud Edge Functions.</p>
    <a href="https://edgeone.ai">TencentCloud EdgeOne</a>
  </body>
</html>
`;

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

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