146 const DataSerializationSupport = {
156 const DeserializeYaml = (
160 const DeserializeXml = (
163 "in":
hash (
string xml, reference<string>
type) {
165 on_success type =
"xml";
166 return parse_xmlrpc_value(xml);
168 catch (hash<ExceptionInfo> ex);
184 const Accept = AcceptList.join(
",");
187 const Version =
"1.4";
193 const DefaultHeaders = (
209 const DataSerializationOptions = (
227 const EncodingSupport = (
246 const CompressionThreshold = 1024;
298 constructor(*
hash opts, *softbool do_not_connect) ;
313 setSerialization(
string data =
"auto");
332 setSendEncoding(
string enc =
"auto");
351 setContentEncoding(
string enc =
"auto");
369 addDefaultHeaders(
hash h);
386 hash getDefaultHeaders();
403 *
string getSendEncoding();
416 string getSerialization();
455 hash get(
string path,
auto body, *reference<hash> info, *
hash hdr);
493 hash put(
string path,
auto body, *reference<hash> info, *
hash hdr);
531 hash patch(
string path,
auto body, *reference<hash> info, *
hash hdr);
569 hash post(
string path,
auto body, *reference<hash> info, *
hash hdr);
607 hash del(
string path,
auto body, *reference<hash> info, *
hash hdr);
621 nothing prepareMsg(
string method,
string path, reference body, reference<hash> hdr,
string ct =
"Content-Type");
628 nothing preparePath(reference<string> path);
671 hash doRequest(
string m,
string path,
auto body, *reference<hash> info, softbool decode_errors =
True, *
hash hdr);
675 hash sendAndDecodeResponse(*data body,
string m,
string path,
hash hdr, *reference<hash> info, *softbool decode_errors);
681 static decodeError(
hash h, *reference<hash> info);
720 "send_encoding":
True,
721 "content_encoding":
True,
725 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:715
const Options
RestConnection object connection options.
Definition: RestClient.qm.dox.h:718
RestClient getImpl(bool connect=True, *hash rtopts)
returns a RestClient::RestClient object
const MimeTypeOctetStream
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:710
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:139