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>| Type | Description | |
|---|---|---|
request | Request | The incoming HTTP request. |
| returns | Response | Promise<Response> | A Promise resolving to an HTTP response. |
Since
v0.0.0