114 const DataSerializationSupport = (
117 "out": \makeJSONString(),
125 "out": \makeXMLRPCValueString(),
130 const DeserializeYaml = (
134 const DeserializeXmlRpc = (
136 "in": \parseXMLRPCValue(),
140 const DataDeserializationSupport = (
159 const Accept = AcceptList.join(
",");
162 const Version =
"1.3";
168 const DefaultHeaders = (
180 const DataSerializationOptions = (
194 const EncodingSupport = (
213 const CompressionThreshold = 1024;
254 constructor(*
hash opts, *softbool do_not_connect);
269 setSerialization(
string data =
"auto");
288 setSendEncoding(
string enc =
"auto");
307 setContentEncoding(
string enc =
"auto");
325 addDefaultHeaders(
hash h);
342 hash getDefaultHeaders();
359 *
string getSendEncoding();
372 string getSerialization();
394 hash get(
string path, any body, *reference info, *
hash hdr);
416 hash put(
string path, any body, *reference info, *
hash hdr);
438 hash post(
string path, any body, *reference info, *
hash hdr);
460 hash del(
string path, any body, *reference info, *
hash hdr);
464 private nothing prepareMsg(reference body, reference hdr,
string ct =
"Content-Type");
468 private nothing preparePath(reference path);
493 hash doRequest(
string m,
string path, any body, *reference info, *softbool decode_errors, *
hash hdr);
497 hash sendAndDecodeResponse(*data body,
string m,
string path,
hash hdr, *reference info, *softbool decode_errors);
501 private decodeError(
hash h, *reference info);
505 decodeResponse(reference h, *reference info);
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)
the RestClient namespace contains all the objects in the RestClient module
Definition: RestClient.qm.dox.h:107