package tiny_httpd

  1. Overview
  2. Docs
Minimal HTTP server using threads

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tiny_httpd-0.22.tbz
sha256=09fb93125c26b99f8714d0060dd3fb972046cde3ff935626d495b25e80543d8e
sha512=5751a0ac007c8cad11255d08b4915c8a8fb82ad33d28e58809ef1e29dc8c8f2fceb0dd15ecbe1fda5b5db2edbbc9479fa1d0690a4a25949e1d1b375ea13bd1a9

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