cohttp

An OCaml library for HTTP clients and servers
Library cohttp
Module Cohttp . Connection
type t

Abstract type for connection identifiers.

include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.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.