60 "cls": Class::forName(
"HttpConnection"),
64 "desc":
"assumes the given encoding if the server does not send a `charset` value",
68 "desc":
"connection timeout to use in milliseconds (default: 45 seconds)",
69 "default_value": 45000,
73 "desc":
"A set of additional characters to subject to percent encoding in URLs",
77 "desc":
"if `True` then HTTP status codes indicating errors will not cause an "
78 "`HTTP-CLIENT-RECEIVE-ERROR` exception to be raised, rather such responses will be "
79 "passed through to the caller like any other response",
80 "default_value": False,
84 "desc":
"headers to add in each outgoing request",
88 "desc":
"HTTP version to use (`1.0` or `1.1`, defaults to `1.1`)",
89 "default_value":
"1.1",
93 "desc":
"For HTTP 1.0",
97 "desc":
"For HTTP 1.1",
103 "desc":
"maximum redirects to support",
107 "desc":
"if `true` then all URI paths in URLs are assumed to be already "
108 "[percent encoded](https://en.wikipedia.org/wiki/Percent-encoding); if this flag is set and "
109 "any unencoded characters are sent in a URL with a new request, an exception is raised",
113 "desc":
"proxy URL to use",
117 "desc":
"if `True` then redirect responses will be passed to the caller instead of processed",
118 "default_value": False,
122 "desc":
"the X.509 certificate data in PEM format (string) or in DER format (binary); if this "
123 "option is set, then `ssl_cert_path` is ignored",
127 "desc":
"a path to an X.509 client certificate file in PEM format",
128 "subst_env_vars": True,
132 "desc":
"the password to the private key given with `ssl_key_path`",
137 "desc":
"the X.509 private key data in PEM format (string) or in DER format (binary); if this "
138 "option is set, then `ssl_key_path` is ignored",
142 "desc":
"a path to a private key file in PEM format for the X.509 client certificate",
143 "subst_env_vars": True,
147 "desc":
"if `True` then the server's certificate will only be accepted if it's verified",
148 "default_value": False,
152 "desc":
"transfer timeout to use in milliseconds (default: 45 seconds)",
153 "default_value": 45000,
string desc
connection description
Definition: AbstractConnection.qc.dox.h:41
string url
connection URL (potentially with password info)
Definition: AbstractConnection.qc.dox.h:44
string name
connection name
Definition: AbstractConnection.qc.dox.h:38
abstract base class for connections
Definition: AbstractConnectionWithInfo.qc.dox.h:32
class for HTTP connections; returns Qore::HTTPClient objects
Definition: HttpConnection.qc.dox.h:55
DataProvider::AbstractDataProvider getDataProvider()
Returns an HttpDataProvider object for this connection.
bool hasDataProvider()
Returns True, as the connection returns a data provider with the getDataProvider() method.
const ConnectionScheme
Connection entry info.
Definition: HttpConnection.qc.dox.h:59
constructor(string name, string desc, string url, hash< auto > attributes={}, hash< auto > options={})
Creates the HttpConnection object.
Qore::HTTPClient getImpl(bool connect=True, *hash< auto > rtopts)
returns an Qore::HTTPClient object
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
string getType()
Returns "http".
const Options
HttpConnection object connection options.
Definition: HttpConnection.qc.dox.h:159
bool supportsPollingApi()
returns True, since this connection type supports the Qore Socket-based polling API
setChildCapabilities()
Sets child data provider capabilities.
Qore::AbstractPollOperation startPollConnect()
Called to start the connection if the connection supports the polling API.
The ConnectionProvider namespace.
Definition: AbstractConnection.qc.dox.h:28
Allowed value hash.
Definition: ConnectionSchemeCache.qc.dox.h:29
Connection option information.
Definition: ConnectionSchemeCache.qc.dox.h:38
Connection provider information.
Definition: ConnectionSchemeCache.qc.dox.h:62