Module Prometheus_app.Cohttp

A Cohttp callback for a web-server that exposes the Prometheus metrics.

Parameters

module S : Cohttp_lwt.S.Server

Signature

val callback : S.conn -> Cohttp.Request.t -> Cohttp_lwt.Body.t -> (Cohttp.Response.t * Cohttp_lwt.Body.t) Lwt.t