Synclets logoSynclets

fetch

The fetch method handles incoming requests to the Durable Object. The Synclet is automatically initialized on first request if not already initialized. Override this method to implement custom request handling.

fetch(request: Request): Response | Promise<Response>
TypeDescription
requestRequest

The incoming HTTP request.

returnsResponse | Promise<Response>

A Promise resolving to an HTTP response.

Since

v0.0.0