AbstractProtectedpathProtectedctxProtectedenvProtectedlogResponse context for customizing the response. Modify status, statusText, or headers before returning data.
Optionalparams: POptionalparams: POptionalparams: POptionalparams: POptionalparams: P
Base class for route handlers in DurableObjectRouter
Extend this class to create handlers for Durable Object routes with access to state and environment. By default, all HTTP methods throw a 405 Method Not Allowed error. Override the methods you want to support.
Response customization:
this.responseto modify status, statusText, or headers before returning dataResponseobject directly for full controlExample