Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Make.ConnectionSourceval create :
?finalise:(t -> unit Net.IO.t) ->
?persistent:bool ->
?ctx:Net.ctx ->
Net.endp ->
tcreate ?finalise ?persistent ?ctx endp connects to endp. The connection handle may be used immediately, although the connection may not yet be established.
val connect :
?finalise:(t -> unit Net.IO.t) ->
?persistent:bool ->
?ctx:Net.ctx ->
Net.endp ->
t Net.IO.tSame as create, but returns d promise which gets fulfilled when the connection is established or rejected when connecting fails.
Send EOF. On TCP connections send a FIN packet. On TLS connections send a close notify. No new requests can be sent afterwards, but responses may still be received.
Immediately close connection. All outstanding requests will fail, but non-idempotent requests that already went out on the wire may have produced side-effects.
If is_closed connection is false the connection still accepts new requests.
Number of unfulfilled requests. This includes requests already sent out and requests still waitung to be sent.
Queue a request. Please see requester.