This repository was archived by the owner on Mar 22, 2026. It is now read-only.
Repository navigation
CHANGES:
Initial release of Trail, including:
-
a simple interface for defining servers as functions over a Connection object
to handle incoming requests and response -
a
usefunction to insert new middlewares in the connection pipeline -
a
routerfunction to define scoped routes using different http verbs- support for
delete,get,head,patch,post,puthttp verbs - support for
resourcewhich expects a module implementing common REST operations (create, read, update, delete, etc) - support for
socketroutes that automatically upgrade connections to WebSockets
- support for
-
a module interface for defining socket handlers
-
a simple hello world example with routes, middlewares, and sockets
-
a few common middlewares:
- a CORS middleware to facilitate setting up CORS in servers
- a
Request_idmiddleware to assign a unique id header to every request - a
Loggermiddleware that logs requests with several measurements - a
Staticmiddleware to server static files from the file system