package cohttp

  1. Overview
  2. Docs

Module Cohttp.ConnectionSource

Connection identifiers.

Sourcetype t

Abstract type for connection identifiers.

include Ppx_sexp_conv_lib.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval create : unit -> t

Create a fresh connection identifier.

Sourceval to_string : t -> string

Pretty-print a connection identifer.

Sourceval compare : t -> t -> int

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

OCaml

Innovation. Community. Security.