mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-09 23:57:17 +01:00
Merge branch 'poco-1.10.0' into devel
This commit is contained in:
commit
1b6cef1869
@ -34,7 +34,7 @@ class Net_API HTTPServerParams: public TCPServerParams
|
||||
{
|
||||
public:
|
||||
using Ptr = Poco::AutoPtr<HTTPServerParams>;
|
||||
|
||||
|
||||
HTTPServerParams();
|
||||
/// Creates the HTTPServerParams.
|
||||
///
|
||||
@ -43,13 +43,13 @@ public:
|
||||
/// - keepAlive: true
|
||||
/// - maxKeepAliveRequests: 0
|
||||
/// - keepAliveTimeout: 10 seconds
|
||||
|
||||
|
||||
void setServerName(const std::string& serverName);
|
||||
/// Sets the name and port (name:port) that the server uses to identify itself.
|
||||
///
|
||||
/// If this is not set to valid DNS name for your host, server-generated
|
||||
/// redirections will not work.
|
||||
|
||||
|
||||
const std::string& getServerName() const;
|
||||
/// Returns the name and port (name:port) that the server uses to identify itself.
|
||||
|
||||
@ -68,28 +68,28 @@ public:
|
||||
|
||||
void setTimeout(const Poco::Timespan& timeout);
|
||||
/// Sets the connection timeout for HTTP connections.
|
||||
|
||||
|
||||
const Poco::Timespan& getTimeout() const;
|
||||
/// Returns the connection timeout for HTTP connections.
|
||||
|
||||
|
||||
void setKeepAlive(bool keepAlive);
|
||||
/// Enables (keepAlive == true) or disables (keepAlive == false)
|
||||
/// persistent connections.
|
||||
|
||||
|
||||
bool getKeepAlive() const;
|
||||
/// Returns true iff persistent connections are enabled.
|
||||
|
||||
|
||||
void setKeepAliveTimeout(const Poco::Timespan& timeout);
|
||||
/// Sets the connection timeout for HTTP connections.
|
||||
|
||||
/// Sets the keep-alive timeout for persistent HTTP connections.
|
||||
|
||||
const Poco::Timespan& getKeepAliveTimeout() const;
|
||||
/// Returns the connection timeout for HTTP connections.
|
||||
|
||||
/// Returns the keep-alive timeout for persistent HTTP connections.
|
||||
|
||||
void setMaxKeepAliveRequests(int maxKeepAliveRequests);
|
||||
/// Specifies the maximum number of requests allowed
|
||||
/// during a persistent connection. 0 means unlimited
|
||||
/// connections.
|
||||
|
||||
|
||||
int getMaxKeepAliveRequests() const;
|
||||
/// Returns the maximum number of requests allowed
|
||||
/// during a persistent connection, or 0 if
|
||||
|
Loading…
x
Reference in New Issue
Block a user