AbstractProtectedpathThe raw DurableObjectState - use for blockConcurrencyWhile, etc.
Flattened storage access from DurableObjectState
Flattened ID access from DurableObjectState
Environment bindings
Define CORS configuration for this route handler.
Base class for route handlers in DurableObjectRouter
Extend this class to create handlers for Durable Object routes with access to storage and environment. The handler instance has access to
this.storage,this.id,this.state, andthis.env. By default, all HTTP methods throw a 405 Method Not Allowed error. Override the methods you want to support.Response customization:
ctx.responseto modify status, statusText, or headers before returning dataResponseobject directly for full controlExample