Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
A focused RESTful server framework 🌰
default
acorn is a focused framework for creating RESTful JSON services across various JavaScript and TypeScript runtime environments including Deno runtime, Deno Deploy, Node.js, Bun and Cloudflare Workers.
The execution context that is passed to the Cloudflare Worker fetch handler.
The interface that defines the Cloudflare Worker fetch handler.
A function that can be called when a schema is invalid.
Options which can be set when configuring the logger when creating a new router.
The description of a route which can be used when registering a route with
the Router, which incorporates the path, handler, and other
route specific options.
A function that handles a route. The handler is provided a
Context object which provides information about the request
being handled as well as other methods for interacting with the request.
A handler can return a Response object, a value that can be
serialized to JSON, or undefined. If a value is returned, it will be
validated against the response schema of the route. If undefined is
returned, the response will be handled as a 204 No Content response.
Options which can be provided when creating a route that also include the handler.
Options which can be set with on a route, related to how matching against a path pattern works.
A type which supports inferring parameters that will be parsed from the route.
Options which can be specified when creating an instance of
Router.
A descriptor for a schema that can be applied to a request and response.
A function that handles a status route. The handler is provided a
Context object which provides information about the request
being handled as well as other methods for interacting with the request.
The status is also provided to the handler, along with the current response.
A string that represents a range of HTTP response Status codes:
Validation options which can be applied when validating.