80 constructor(
string name,
string desc,
string url, hash<auto> attributes = {}, hash<auto> options = {}, *Logger logger) ;
string desc
Connection description with markdown formatting.
Definition AbstractConnection.qc.dox.h:82
string url
Connection URL (potentially with password info)
Definition AbstractConnection.qc.dox.h:85
string name
Connection name.
Definition AbstractConnection.qc.dox.h:73
abstract base class for connections
Definition AbstractConnectionWithInfo.qc.dox.h:32
class for HTTP connections; returns Qore::HTTPClient objects
Definition HttpConnection.qc.dox.h:59
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:63
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:67
Qore::AbstractPollOperation startPollConnect(*Logger::LoggerInterface logger)
Called to start the connection if the connection supports the polling API.
constructor(hash< auto > config, *hash< auto > attr)
Creates the HttpConnection object.
bool supportsPollingApi()
returns True, since this connection type supports the Qore Socket-based polling API
DataProvider::AbstractDataProvider getDataProvider(*hash< auto > constructor_options)
Returns an HttpDataProvider object for this connection.
setChildCapabilities()
Sets child data provider capabilities.
constructor(string name, string desc, string url, hash< auto > attributes={}, hash< auto > options={}, *Logger logger)
Creates the HttpConnection object.
*hash< auto > getConnectionOptions(*hash< auto > rtopts)
Returns options for creating a new connection.
The ConnectionProvider namespace.
Definition AbstractConnection.qc.dox.h:28