Ocamlnet 4 Reference Manual : Nethttp_client_conncache

`sig
type transport_layer_id = int
type inactive_data = {
conn_trans : Nethttp_client_conncache.transport_layer_id;
tls_stashed_endpoint : exn option;
}
type conn_state =
[ `Active of < > | `Inactive of Nethttp_client_conncache.inactive_data ]
type peer =
[ `Direct of string * int
| `Direct_name of string * int
| `Http_proxy of string * int
| `Http_proxy_connect of (string * int) * (string * int)
| `Socks5 of (string * int) * (string * int) ]
class type connection_cache =
object
method close_all : unit -> unit
method close_connection : Unix.file_descr -> unit
method find_inactive_connection :
Nethttp_client_conncache.peer ->
Nethttp_client_conncache.transport_layer_id ->
Unix.file_descr * Nethttp_client_conncache.inactive_data
method find_my_connections : < > -> Unix.file_descr list
method get_connection_state :
Unix.file_descr -> Nethttp_client_conncache.conn_state
method set_connection_state :
Unix.file_descr ->
Nethttp_client_conncache.peer ->
Nethttp_client_conncache.conn_state -> unit
end
class restrictive_cache : unit -> connection_cache
class aggressive_cache : unit -> connection_cache
end`