83 namespace RestClient {
94 "out": \makeJSONString(),
102 "out": \makeXMLRPCValueString(),
107 const DeserializeYaml = (
122 "in": \parseXMLRPCValue(),
243 hash get(
string path, any body, *reference info);
264 hash put(
string path, any body, *reference info);
285 hash post(
string path, any body, *reference info);
306 hash del(
string path, any body, *reference info);
331 hash doRequest(
string m,
string path, any body, *reference info, *softbool decode_errors, *
hash hdr);
334 decodeResponse(reference h, *reference info);
this class provides the REST client API
Definition: RestClient.qm.dox.h:86
const Version
RestClient Version.
Definition: RestClient.qm.dox.h:137
string sprintf(string fmt,...)
const AcceptList
Accept header list.
Definition: RestClient.qm.dox.h:127
const DataSerializationSupport
Data serialization support mapping codes to MIME types and de/serialization functions.
Definition: RestClient.qm.dox.h:91
hash del(string path, any body, *reference info)
sends an HTTP DELETE request to the REST server and returns the response
hash put(string path, any body, *reference info)
sends an HTTP PUT request to the REST server and returns the response
const DefaultHeaders
default HTTP headers (Content-Type is added before sending)
Definition: RestClient.qm.dox.h:143
const DataDeserializationSupport
Data deserialization support MIME types to codes and de/serialization functions.
Definition: RestClient.qm.dox.h:113
const DataSerializationOptions
Data serialization options; this is a hash to similulate a set of strings.
Definition: RestClient.qm.dox.h:155
const Accept
Accept header value.
Definition: RestClient.qm.dox.h:134
const VersionString
RestClient Version String.
Definition: RestClient.qm.dox.h:140
string getSerialization()
returns the current data serialization format currently in effect for the object (see DataSerializati...
hash post(string path, any body, *reference info)
sends an HTTP POST request to the REST server and returns the response
hash doRequest(string m, string path, any body, *reference info, *softbool decode_errors, *hash hdr)
sends an HTTP request to the REST server and returns the response
setSerialization(string data="auto")
change the serialization option for the object; see DataSerializationOptions for valid options ...