94 namespace RestClient {
102 const DataSerializationSupport = (
105 "out": \makeJSONString(),
113 "out": \makeXMLRPCValueString(),
118 const DeserializeYaml = (
122 const DeserializeXmlRpc = (
124 "in": \parseXMLRPCValue(),
128 const DataDeserializationSupport = (
147 const Accept = AcceptList.join(
",");
150 const Version =
"1.2";
156 const DefaultHeaders = (
168 const DataSerializationOptions = (
181 const EncodingSupport = (
233 constructor(*
hash opts, *softbool do_not_connect);
248 setSerialization(
string data =
"auto");
263 setSendEncoding(
string enc =
"auto");
276 string getSerialization();
298 hash get(
string path, any body, *reference info, *
hash hdr);
320 hash put(
string path, any body, *reference info, *
hash hdr);
342 hash post(
string path, any body, *reference info, *
hash hdr);
364 hash del(
string path, any body, *reference info, *
hash hdr);
368 private nothing prepareMsg(reference body, reference hdr,
string ct =
"Content-Type");
372 private nothing preparePath(reference path);
397 hash doRequest(
string m,
string path, any body, *reference info, *softbool decode_errors, *
hash hdr);
401 decodeResponse(reference h, *reference info);
this class provides the REST client API
Definition: RestClient.qm.dox.h:97
string sprintf(string fmt,...)
binary bzip2(binary bin, softint level=BZ2_DEFAULT_COMPRESSION)
binary gzip(string str, int level=Z_DEFAULT_COMPRESSION)
binary compress(string str, int level=Z_DEFAULT_COMPRESSION)