ProtectedconstructorCreate an Adapter.
The blueprint to create the adapter.
Protected ReadonlyblueprintProtected ReadonlyhooksProtected ReadonlymiddlewareProtected ReadonlyresolvedProtectedbuildBuild the raw response.
The event context.
OptionaleventHandler: AdapterEventHandlerType<IncomingHttpEvent, OutgoingHttpResponse>
The event handler to be run.
The raw response wrapper.
ProtectedeventHandle a single Web Request, producing a Web Response.
The incoming request.
The runtime-provided context (e.g. Cloudflare env/ctx).
The response.
ProtectedexecuteExecute the event handler lifecycle hooks.
The hook to execute.
The event handler to be run.
ProtectedexecuteExecute adapter lifecycle hooks.
The hook's name.
Optionalcontext: FetchAdapterContext
The event context.
Optionalerror: any
The error to handle.
ProtectedhandleHandle error.
The error to handle.
The event context.
The raw response.
ProtectedhandleHandle the event.
The event context.
The event handler to be run.
The raw response wrapper.
ProtectedmakeCreate pipeline options for the Adapter.
The pipeline options for transforming the event.
ProtectedonLifecycle hook run once before the first request.
ProtectedresolveGet the error handler for the given error.
The error to get the handler for.
The error handler.
ProtectedresolveStart the adapter and return a Fetch handler.
The Fetch handler.
ProtectedsendSend the raw event through the destination.
The event context.
The event handler to be run.
Platform-specific response.
ProtectedvalidateValidate the context and event handler.
The context to validate.
The event handler to validate.
StaticcreateThe application blueprint.
A new adapter instance.
Web-standard (WinterCG Fetch) adapter for Stone.js.
Unlike a server adapter,
run()does not start a listener — it returns a Fetch handler(request, executionContext?) => Promise<Response>, exactly what every WinterCG runtime expects. Wire it once and deploy the same build to Cloudflare Workers, Deno, Bun, Vercel Edge or Netlify Edge.Example