package tiny_httpd

  1. Overview
  2. Docs
Minimal HTTP server using threads

Install

Dune Dependency

Authors

Maintainers

Sources

tiny_httpd-0.18.tbz
sha256=ef806444b2f9e53d10976b9124902560d0855124433537080e6d0bec48d202e5
sha512=539530eb9e511b6ed4d69bb083f421d5f51b183c347c116a52f24210f30b1c9b14a029e2b82d6e0d698c74ab75ba5c307a1976711558a1419df287335b2a8f51

doc/tiny_httpd.prometheus/Tiny_httpd_prometheus/Registry/index.html

Module Tiny_httpd_prometheus.RegistrySource

Registry for metrics.

Sourcetype t

The registry contains a group of metrics

Sourceval create : unit -> t
Sourceval on_will_emit : t -> (unit -> unit) -> unit

on_will_emit registry f calls f() every time emit buf registry is called (before the metrics start being emitted). This is useful to update some metrics on demand.

Sourceval emit : Buffer.t -> t -> unit

Write metrics into the given buffer. The buffer will be cleared first thing.

Sourceval emit_str : t -> string
OCaml

Innovation. Community. Security.