package trail
A minimalistic, composable web framework for building HTTP/WebSocket servers
Install
Dune Dependency
Authors
Maintainers
Sources
trail-0.0.1.tbz
sha256=0a034596e0a8527cf775efc1c4bb08bdccb39971164a11bddcf6ee358e593c5e
sha512=012591f9c9b88ab774a577d6b534019f8270888999834d71aeddf33f92fbd09c4f56449aeafc3ccc7850558a555177f626e46b66355251249824ffcbd4f2294b
doc/CHANGES.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 pipeline a
router
function to define scoped routes using different http verbs- support for
delete
,get
,head
,patch
,post
,put
http verbs - support 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
- 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_id
middleware to assign a unique id header to every request - a
Logger
middleware that logs requests with several measurements - a
Static
middleware to server static files from the file system
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>