class virtual base :Abstract base class for XmlRpc servers.object
..end
val methods : (string, XmlRpc.value list -> XmlRpc.value) Hashtbl.t
val mutable base64_encoder : string -> string
val mutable base64_decoder : string -> string
val mutable datetime_encoder : XmlRpcDateTime.t -> string
val mutable datetime_decoder : string -> XmlRpcDateTime.t
val mutable error_handler : exn -> XmlRpc.message
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 set_error_handler : (exn -> XmlRpc.message) -> unit
XmlRpc.default_error_handler
and
XmlRpc.quiet_error_handler
for examples.method serve : (string -> XmlRpc.value list -> XmlRpc.value) -> string -> string
XmlRpc.serve
with the current
encoders, decoders, and error handler.method serve_message : (string -> XmlRpc.value list -> XmlRpc.value) ->
XmlRpc.message -> XmlRpc.message
serve
, but operates on messages instead of strings.method register : string ->
?help:string ->
?signature:param_type list ->
?signatures:param_type list list ->
(XmlRpc.value list -> XmlRpc.value) -> unit
If a help
string is specified, its contents will be returned for
calls to system.methodHelp
for this method.
If signature
is specified, this method's signature will be published
by system.methodSignature
and (shallow) type-checking will be enabled
for parameters passed into this method.
Multiple signatures can be supplied via signatures
if desired to
provide for overloaded methods.
Signatures are of the form return-type; param1-type; param2-type; ...
where each type is an instance of the XmlRpcServer.param_type
variant.
method unregister : string -> unit
method virtual run : unit -> unit