77 namespace RestClient {
88 "out": \makeJSONString(),
96 "out": \makeXMLRPCValueString(),
101 const DeserializeYaml = (
116 "in": \parseXMLRPCValue(),
237 hash get(
string path, any body, *reference info);
258 hash put(
string path, any body, *reference info);
279 hash post(
string path, any body, *reference info);
300 hash del(
string path, any body, *reference info);
325 hash doRequest(
string m,
string path, any body, *reference info, *softbool decode_errors, *
hash hdr);
328 decodeResponse(reference h, *reference info);
this class provides the REST client API
Definition: RestClient.qm.dox.h:80
const Version
RestClient Version.
Definition: RestClient.qm.dox.h:131
string sprintf(string fmt,...)
const AcceptList
Accept header list.
Definition: RestClient.qm.dox.h:121
const DataSerializationSupport
Data serialization support mapping codes to MIME types and de/serialization functions.
Definition: RestClient.qm.dox.h:85
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:137
const DataDeserializationSupport
Data deserialization support MIME types to codes and de/serialization functions.
Definition: RestClient.qm.dox.h:107
const DataSerializationOptions
Data serialization options; this is a hash to similulate a set of strings.
Definition: RestClient.qm.dox.h:149
const Accept
Accept header value.
Definition: RestClient.qm.dox.h:128
const VersionString
RestClient Version String.
Definition: RestClient.qm.dox.h:134
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 ...