package tiny_httpd

  1. Overview
  2. Docs
Minimal HTTP server using threads

Install

Dune Dependency

Authors

Maintainers

Sources

tiny_httpd-0.16.tbz
sha256=eac8a3ca6e8cd463817e0c62c2cc8181b8ef705a97a7ac6afbbdceae30b42b54
sha512=e0ae94038b7d8f470133005437a1d2a620274fe13f15ce5521817751ae2603c1ed6f635a32a4b3a4ce4d9718f6d53cad6dfafa467a7b7554c86735a82fa1db25

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.