142 const DataSerializationSupport = {
151 const DeserializeYaml = (
155 const DeserializeXml = (
158 "in":
hash (
string xml, reference<string>
type) {
160 on_success type =
"xml";
161 return parse_xmlrpc_value(xml);
163 catch (hash<ExceptionInfo> ex);
178 const Accept = AcceptList.join(
",");
181 const Version =
"1.4";
187 const DefaultHeaders = (
202 const DataSerializationOptions = (
219 const EncodingSupport = (
238 const CompressionThreshold = 1024;
290 constructor(*
hash opts, *softbool do_not_connect) ;
305 setSerialization(
string data =
"auto");
324 setSendEncoding(
string enc =
"auto");
343 setContentEncoding(
string enc =
"auto");
361 addDefaultHeaders(
hash h);
378 hash getDefaultHeaders();
395 *
string getSendEncoding();
408 string getSerialization();
447 hash get(
string path,
auto body, *reference<hash> info, *
hash hdr);
485 hash put(
string path,
auto body, *reference<hash> info, *
hash hdr);
523 hash patch(
string path,
auto body, *reference<hash> info, *
hash hdr);
561 hash post(
string path,
auto body, *reference<hash> info, *
hash hdr);
599 hash del(
string path,
auto body, *reference<hash> info, *
hash hdr);
613 nothing prepareMsg(
string method,
string path, reference body, reference<hash> hdr,
string ct =
"Content-Type");
620 nothing preparePath(reference<string> path);
663 hash doRequest(
string m,
string path,
auto body, *reference<hash> info, softbool decode_errors =
True, *
hash hdr);
667 hash sendAndDecodeResponse(*data body,
string m,
string path,
hash hdr, *reference<hash> info, *softbool decode_errors);
673 static decodeError(
hash h, *reference<hash> info);
712 "send_encoding":
True,
713 "content_encoding":
True,
717 const OptionList =
Options.keys();
string getType()
returns "rest"
string sprintf(string fmt,...)
hash getOptions()
gets options
hash real_opts
real options used when creating an object
Definition: RestClient.qm.dox.h:707
const Options
RestConnection object connection options.
Definition: RestClient.qm.dox.h:710
RestClient getImpl(bool connect=True, *hash rtopts)
returns a RestClient::RestClient object
const MimeTypeFormUrlEncoded
*hash getDefaultOptions()
returns default options
constructor(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
creates the RestConnection object
binary bzip2(binary bin, softint level=BZ2_DEFAULT_COMPRESSION)
binary gzip(string str, int level=Z_DEFAULT_COMPRESSION)
class for REST HTTP connections; returns RestClient::RestClient objects
Definition: RestClient.qm.dox.h:702
static RestConnection make(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
static constructor
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:135