package trail
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A minimalistic, composable web framework for building HTTP/WebSocket servers
Install
dune-project
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
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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>