Qore RestClient Module Reference 1.10.1
Loading...
Searching...
No Matches
RestClient Namespace Reference

the RestClient namespace contains all the objects in the RestClient module More...

Classes

class  RestClient
 this class provides the REST client API More...
 

Functions

RestClient::RestClient Qore::HTTPClient doValidatedRequest (string m, string path, auto body, *reference< hash< auto > > info, softbool decode_errors=True, *hash< auto > hdr)
 The same as doRequest() except no schema validation is performed on the request. More...
 
hash< auto > processRestResponse (hash< auto > resp, string method, string path, *reference< hash< auto > > info)
 Process the raw REST response received. More...
 
private hash< auto > sendAndDecodeResponse (*data body, string m, string path, hash< auto > hdr, *reference< hash< auto > > info, *softbool decode_errors)
 sends the outgoing HTTP message and recodes the response to data
 

Detailed Description

the RestClient namespace contains all the objects in the RestClient module

Function Documentation

◆ doValidatedRequest()

RestClient::RestClient Qore::HTTPClient RestClient::doValidatedRequest ( string  m,
string  path,
auto  body,
*reference< hash< auto > >  info,
softbool  decode_errors = True,
*hash< auto >  hdr 
)

The same as doRequest() except no schema validation is performed on the request.

Since
RestClient 1.7.2

◆ processRestResponse()

hash< auto > RestClient::processRestResponse ( hash< auto >  resp,
string  method,
string  path,
*reference< hash< auto > >  info 
)
private

Process the raw REST response received.

Parameters
respthe return value from HTTPClient::send()
methodthe HTTP method used
paththe URI path used
infoan optional info hash reference for information about the call
Returns
resp with additional or processed information