class head :string ->http_call
class post :string -> (string * string) list ->http_call
class post_raw :string -> string ->http_call
class put :string -> string ->http_call
class delete :string ->http_call
class type key =object..end
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
key_ring is a cache for keys.
class type auth_session =object..end
auth_session represents an authenticated session
class type auth_handler =object..end
class basic_auth_handler :?enable_auth_in_advance:bool -> #key_handler ->auth_handler
class digest_auth_handler :?enable_auth_in_advance:bool -> #key_handler ->auth_handler
class basic_auth_method :object..end
class digest_auth_method :basic_auth_method
type connection_cache
val close_connection_cache : connection_cache -> unitval create_restrictive_cache : unit -> connection_cacheval create_aggressive_cache : unit -> connection_cacheclose_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
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 -> ...
| ...
open Http_client.Convenience for simple applications.module Convenience:sig..end