class client :Class for XmlRpc clients. Takes a single mandatory argument,?debug:bool -> ?headers:(string * string) list -> ?insecure_ssl:bool -> ?timeout:float -> ?useragent:string -> string ->
object
..end
url
.
If url
is of the form "http://username:password@...", basic
authentication will be used.
If url
starts with "https", Curl will be used instead of Ocamlnet.
The "curl" command-line program must be in your path for this to work.
You can use the insecure_ssl
setting to allow connections to servers
with self-signed certificates; by default this is false and certificates
must be valid.
timeout
can be used to specify the maximum amount of time
elapsed before a connection is cancelled. It defaults to 300.0 seconds.
headers
may contain an array of (name, value) pairs of additional
headers to send with each request.
The useragent
setting provides a convenient way to change the
User-Agent header, which defaults to "XmlRpc-Light/<version>".
The debug
setting, if true, will enable verbose debugging output to
the standard error stream.
val url : string
val mutable debug : bool
val mutable headers : (string * string) list
val mutable insecure_ssl : bool
val mutable timeout : float
val mutable useragent : string
method url : string
url
.method debug : bool
debug
.method set_debug : bool -> unit
debug
.method headers : (string * string) list
headers
.method set_headers : (string * string) list -> unit
headers
.method insecure_ssl : bool
insecure_ssl
.method set_insecure_ssl : bool -> unit
insecure_ssl
.method timeout : float
timeout
.method set_timeout : float -> unit
timeout
.method useragent : string
useragent
.method set_useragent : string -> unit
useragent
.method set_base64_encoder : (string -> string) -> unit
method set_base64_decoder : (string -> string) -> unit
method set_datetime_encoder : (XmlRpcDateTime.t -> string) -> unit
method set_datetime_decoder : (string -> XmlRpcDateTime.t) -> unit
method call : string -> value list -> value