package opium_kernel

  1. Overview
  2. Docs

Module Opium_kernel.RockSource

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

Sourcemodule Service : sig ... end

A service is simply a function that returns its result asynchronously

Sourcemodule Filter : sig ... end

A filter is a higher order function that transforms a service into another service.

Sourcemodule Request : sig ... end
Sourcemodule Response : sig ... end
Sourcemodule Handler : sig ... end

A handler is a rock specific service

Sourcemodule Middleware : sig ... end

Middleware is a named, simple filter, that only works on rock requests/response

Sourcemodule App : sig ... end