package trail
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=0a034596e0a8527cf775efc1c4bb08bdccb39971164a11bddcf6ee358e593c5e
sha512=012591f9c9b88ab774a577d6b534019f8270888999834d71aeddf33f92fbd09c4f56449aeafc3ccc7850558a555177f626e46b66355251249824ffcbd4f2294b
CHANGES.md.html
0.0.1
Initial release of Trail, including:
a simple interface for defining servers as functions over a Connection object to handle incoming requests and response
a
use
function to insert new middlewares in the connection pipelinea
router
function to define scoped routes using different http verbssupport for
delete
,get
,head
,patch
,post
,put
http verbssupport for
resource
which expects a module implementing common REST operations (create, read, update, delete, etc)support for
socket
routes that automatically upgrade connections to WebSockets
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_id
middleware to assign a unique id header to every requesta
Logger
middleware that logs requests with several measurementsa
Static
middleware to server static files from the file system