Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Make.Rval recv_hdr : transport -> (id option * response_hdr) Lwt.tval recv_body :
transport ->
request_hdr ->
response_hdr ->
response_body ->
(unit, Protocol.Error.t) Result.result Lwt.trecv_body transport request_hdr response_hdr response_body returns Ok () and receives and writes the body of the response into response_body if the request has been successful, otherwise returns an Error. The request_hdr parameter is the output of a preceding recv_hdr call.
val send_one : transport -> request_hdr -> request_body -> unit Lwt.tSend a single request. Invocations of this function will not be interleaved because they are protected by a mutex
val id_of_request : request_hdr -> idval handle_unrequested_packet : transport -> response_hdr -> unit Lwt.t