class head : string -> http_call
Argument: URI
class post : string -> (string * string) list -> http_call
Arguments: URI, parameter list to be transferred as application/x-www-form-urlencoded body
class post_raw : string -> string -> http_call
Arguments: URI, body
class put : string -> string -> http_call
Arguments: URI, body
class delete : string -> http_call
Argument: URI

Authentication


class type key = object .. end
A key is a user/password combination for a certain realm
class type key_handler = object .. end
class key_ring : ?uplink:#key_handler -> unit -> object .. end
The key_ring is a cache for keys.
class type auth_session = object .. end
An auth_session represents an authenticated session
class type auth_handler = object .. end
An authentication handler has the capability of adding the necessary headers to messages.
class basic_auth_handler : ?enable_auth_in_advance:bool -> #key_handler -> auth_handler
Basic authentication.
class digest_auth_handler : ?enable_auth_in_advance:bool -> #key_handler -> auth_handler
Digest authentication.
class basic_auth_method : object .. end
Deprecated.
class digest_auth_method : basic_auth_method
Deprecated.

Pipelines



A connection cache is an object that keeps connections open that are currently unused. A connection cache can be shared by several pipelines.
type connection_cache 
val close_connection_cache : connection_cache -> unit
Closes all descriptors known to the cache
val create_restrictive_cache : unit -> connection_cache
A restrictive cache closes connections as soon as there are no pending requests.
val create_aggressive_cache : unit -> connection_cache
This type of cache tries to keep connections as long open as possible. The consequence is that users are responsible for closing the descriptors (by calling close_connection_cache) when the cache is no longer in use.

Aggressive caching is an experimental feature. Reports about success and/or problems are very welcome.

class pipeline : object .. end
A pipeline is a queue of HTTP calls to perform

Example using the pipeline:

 let call = new get "http://server/path" in
 let pipeline = new pipeline in
 pipeline # add call;
 pipeline # run();    (* Now the HTTP client is working... *)
 match call # status with
 | `Successful -> ...
 | ...
 


Convenience module for simple applications



Do open Http_client.Convenience for simple applications.
module Convenience: sig .. end
./usr/share/doc/libocamlnet-ocaml-doc/html-main/Nethttpd_kernel.http_protocol_config.html0000644000000000000000000002547510712447526030675 0ustar rootroot
class head : string -> http_call
Argument: URI
class post : string -> (string * string) list -> http_call
Arguments: URI, parameter list to be transferred as application/x-www-form-urlencoded body
class post_raw : string -> string -> http_call
Arguments: URI, body
class put : string -> string -> http_call
Arguments: URI, body
class delete : string -> http_call
Argument: URI

Authentication


class type key = object .. end
A key is a user/password combination for a certain realm
class type key_handler = object .. end
class key_ring : ?uplink:#key_handler -> unit -> object .. end
The key_ring is a cache for keys.
class type auth_session =