package cohttp

  1. Overview
  2. Docs

Connection identifiers.

type t

Abstract type for connection identifiers.

val t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create : unit -> t

Create a fresh connection identifier.

val to_string : t -> string

Pretty-print a connection identifer.

val compare : t -> t -> int

Comparison function for two identifiers. More recently constructed identifiers will be greater than older ones.

OCaml

Innovation. Community. Security.