39 "desc":
"Connection timeout in milliseconds",
43 "desc":
"The content encoding (compression algorithm) for sending (if `send_encoding` is not set) "
48 "desc":
"The data serialization option to use",
49 "default_value":
"auto",
53 "desc":
"Error responses will be passed to the caller instead of causing an exception to be raised",
57 "desc":
"An optional hash of headers to send with the request",
61 "desc":
"The HTTP version to use",
62 "default_value":
"1.1",
66 "desc":
"The maximum number of redirect responses to process",
71 "desc":
"The HTTP method to use; if not given then `GET` is used for reads, and `POST` is used for "
76 "desc":
"The proxy URL for connecting through a proxy",
80 "desc":
"Redirect responses will be passed to the caller instead of followed",
84 "desc":
"The content encoding (compression algorithm) to use when sending data",
88 "desc":
"The X.509 certificate data in PEM format (string) or in DER format (binary); if this "
89 "option is set, then `ssl_cert_path` is ignored",
93 "desc":
"A path to an X.509 client certificate file in PEM format; if this option is used, then the "
94 "calling context must not be restricted with sandbox restriction `PO_NO_FILESYSTEM` which is "
99 "desc":
"The X.509 private key data in PEM format (string) or in DER format (binary); if this "
100 "option is set, then `ssl_key_path` is ignored",
104 "desc":
"A path to a private key file in PEM format; if this option is used, then the "
105 "calling context must not be restricted with sandbox restriction `PO_NO_FILESYSTEM` which is "
106 "checked at runtime",
110 "desc":
"The password to the private key given with `ssl_key_path`",
114 "desc":
"The server's certificate will only be accepted if it's verified",
118 "desc":
"The location of a Swagger schema to use for message validation",
122 "desc":
"In case a REST validator is used, the base path in the schema can be overridden "
123 "with this option (applies to any REST validator; not just Swagger validators)",
127 "desc":
"I/O timeout in milliseconds",
214 writeFileImpl(
string scheme,
string location, data contents, *hash<auto> opts);
253 object getRestClient(
string scheme,
string location, *hash<auto> opts, reference<string> path,
bool do_connect = True);
264 AbstractPollOperation
op;
The abstract file location handler class.
Definition: FileLocationHandler.qc.dox.h:53
The class for handling "rest(s)://"" locations.
Definition: FileLocationHandlerRest.qc.dox.h:30
binary getBinaryFileImpl(string scheme, string location, *hash< auto > opts)
Retrieves a binary file from the given location.
hash< string, hash< FileHandlerOptionInfo > > getReadOptionsImpl()
Gets supported read options.
object getRestClient(string scheme, string location, *hash< auto > opts, reference< string > path, bool do_connect=True)
Returns a RestClient object for the given location.
OutputStreamWrapper getOutputStreamImpl(string scheme, string location, *hash< auto > opts)
This method only throws a STREAM-WRITE-ERROR exception.
writeFileImpl(string scheme, string location, data contents, *hash< auto > opts)
Writes data to a file at the given location.
const RestClientLocationOpts
Valid REST location options.
Definition: FileLocationHandlerRest.qc.dox.h:36
Qore::StreamReader getStreamReaderImpl(string scheme, string location, *hash< auto > opts)
Returns a stream reader for the file's data at the given location.
Qore::AbstractPollOperation getIoPollerForLocationImpl(string scheme, string location, *hash< auto > opts)
Retrieves an I/O poller to retrieve a binary file from the given location.
string getTextFileImpl(string scheme, string location, *hash< auto > opts)
Retrieves a text file from the given location.
Qore::InputStream getBinaryStreamImpl(string scheme, string location, *hash< auto > opts)
Retrieves a binary file from the given location.
hash< string, hash< FileHandlerOptionInfo > > getWriteOptionsImpl()
Gets supported write options.
Wraps an HTTP poller so that the response body is always returned as the output.
Definition: FileLocationHandlerRest.qc.dox.h:259
bool goalReached()
Calls the corresponding method in the wrapped poller and returns the return value.
string getState()
Calls the corresponding method in the wrapped poller and returns the return value.
AbstractPollOperation op
The HTTP poller to execute.
Definition: FileLocationHandlerRest.qc.dox.h:264
auto getOutput()
Returns the value of the "response-body" key in the wrapped HTTP poller's output data.
constructor(AbstractPollOperation op)
Creates the object wrapping the HTTP poller passed as an argument.
string getGoal()
Calls the corresponding method in the wrapped poller and returns the return value.
*hash< SocketPollInfo > continuePoll()
Calls the corresponding method in the wrapped poller and returns the return value.
The abstract file location handler class.
Definition: OutputStramWrapper.qc.dox.h:28
Contains all public definitions in the FileLocationHandler module.
Definition: FileLocationHandler.qc.dox.h:26
File handler option info.
Definition: FileLocationHandler.qc.dox.h:28