the RestClient namespace contains all the objects in the RestClient module
More...
|
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
|
|
the RestClient namespace contains all the objects in the RestClient module
◆ 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
-
resp | the return value from HTTPClient::send() |
method | the HTTP method used |
path | the URI path used |
info | an optional info hash reference for information about the call |
- Returns
- resp with additional or processed information