Module Rock
A tiny clone of ruby's Rack protocol in OCaml. Which is slightly more general and inspired by Finagle. It's not imperative to have this to for such a tiny framework but it makes extensions a lot more straightforward
module App : sig ... endmodule Context : sig ... endA context holds heterogeneous value and is passed to the requests or responses.
module Request : sig ... endModule to create HTTP requests.
module Response : sig ... endModule to create HTTP responses.
module Body : sig ... endRepresents an HTTP request or response body.
module Service : sig ... endA service is a function that returns its result asynchronously.
module Filter : sig ... endA filter is a higher order function that transforms a service into another service.
module Handler : sig ... endA handler is a rock specific service.
module Middleware : sig ... endMiddleware is a named, simple filter, that only works on rock requests/response.
module Server_connection : sig ... endCollection of functions to run a server from a Rock app.