package cohttp

  1. Overview
  2. Docs
An OCaml library for HTTP clients and servers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cohttp-1.0.0.tbz
sha256=42b26ee6126ce0c607345e285a926641f5a9aa48b2854319b1d42c3782a704e0
md5=756f590576d4a60ce2382ef89274b44b

doc/cohttp/Cohttp/Connection/index.html

Module Cohttp.Connection

Connection identifiers.

type t

Abstract type for connection identifiers.

include Ppx_sexp_conv_lib.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.