Settings for an Poco::Net::HTTPClientSession.
More...
#include <ClientSessionSettings.h>
Settings for an Poco::Net::HTTPClientSession.
This is used by a Context to configure client / server interaction.
◆ getDefaultHeaders()
const Poco::Net::NameValueCollection & ofx::HTTP::ClientSessionSettings::getDefaultHeaders |
( |
| ) |
const |
Get the default headers to included with each request.
- Returns
- the default headers to included with each request.
◆ getKeepAlive()
bool ofx::HTTP::ClientSessionSettings::getKeepAlive |
( |
| ) |
const |
- Returns
- True if keep-alive is enabled.
◆ getKeepAliveTimeout()
Poco::Timespan ofx::HTTP::ClientSessionSettings::getKeepAliveTimeout |
( |
| ) |
const |
- Returns
- The keep-alive timeout.
◆ getMaximumProgressUpdateInterval()
Poco::Timespan ofx::HTTP::ClientSessionSettings::getMaximumProgressUpdateInterval |
( |
| ) |
const |
- Returns
- the maximum interval between progress updates.
◆ getMaxRedirects()
std::size_t ofx::HTTP::ClientSessionSettings::getMaxRedirects |
( |
| ) |
const |
- Returns
- The max number of redirects to automatically follow.
◆ getMinimumBytesPerProgressUpdate()
int64_t ofx::HTTP::ClientSessionSettings::getMinimumBytesPerProgressUpdate |
( |
| ) |
const |
- Returns
- The minimum number of bytes per progress update.
◆ getProxySettings()
const ProxySettings & ofx::HTTP::ClientSessionSettings::getProxySettings |
( |
| ) |
const |
- Returns
- the current proxy settings.
◆ getTimeout()
Poco::Timespan ofx::HTTP::ClientSessionSettings::getTimeout |
( |
| ) |
const |
- Returns
- The client timeout.
◆ getUserAgent()
std::string ofx::HTTP::ClientSessionSettings::getUserAgent |
( |
| ) |
const |
- Returns
- the current user-agent.
◆ setkeepAlive()
void ofx::HTTP::ClientSessionSettings::setkeepAlive |
( |
bool |
keepAlive | ) |
|
Enable or disable the session keep-alive.
- Parameters
-
keepAlive | True if keep-alive should be enabled. |
◆ setKeepAliveTimeout()
void ofx::HTTP::ClientSessionSettings::setKeepAliveTimeout |
( |
Poco::Timespan |
keepAliveTimeout | ) |
|
Set the keep-alive timeout.
- Parameters
-
keepAliveTimeout | The keep-alive timeout. |
◆ setMaximumProgressUpdateInterval()
void ofx::HTTP::ClientSessionSettings::setMaximumProgressUpdateInterval |
( |
Poco::Timespan |
interval | ) |
|
Set the maximum interval between progress updates.
This is useful for slow connections to keep the update data rate up-to-date.
A value of 0 will effectively disable the maximum interval.
- Parameters
-
interval | The interval to set. |
◆ setMaxRedirects()
void ofx::HTTP::ClientSessionSettings::setMaxRedirects |
( |
std::size_t |
maxRedirects | ) |
|
Set the max number of redirects to automatically follow.
- Parameters
-
maxRedirects | The max number of redirects to automatically follow. |
◆ setMinimumBytesPerProgressUpdate()
void ofx::HTTP::ClientSessionSettings::setMinimumBytesPerProgressUpdate |
( |
int64_t |
minimumBytesPerProgressUpdate | ) |
|
Set the minimum number of bytes per progress update.
This is the default number of bytes to wait between progress update events events. If this number is very low, then too many events may be sent. If this number is too high, the progress updates may not come frequently enough to be useful.
A value of 0 will disable the progress updates.
- Parameters
-
bytesPerProgressUpdate | The number of bytes to set. |
◆ setProxy()
void ofx::HTTP::ClientSessionSettings::setProxy |
( |
const ProxySettings & |
proxy | ) |
|
Set the proxy settings for this client session.
- Parameters
-
proxy | The proxy settings to use. |
◆ setTimeout()
void ofx::HTTP::ClientSessionSettings::setTimeout |
( |
Poco::Timespan |
timeout | ) |
|
Set the client timeout.
- Parameters
-
clientTimeout | The client timeout to set. |
◆ setUserAgent()
void ofx::HTTP::ClientSessionSettings::setUserAgent |
( |
const std::string & |
userAgent | ) |
|
Set the user-agent for this client session.
- Parameters
-
userAgent | The user agent string. |
The documentation for this class was generated from the following files: