diff options
Diffstat (limited to 'library/cpp/http/server/options.cpp')
-rw-r--r-- | library/cpp/http/server/options.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/library/cpp/http/server/options.cpp b/library/cpp/http/server/options.cpp index 05c954384a..5f10c42b8a 100644 --- a/library/cpp/http/server/options.cpp +++ b/library/cpp/http/server/options.cpp @@ -1,5 +1,6 @@ #include "options.h" +#include <util/stream/output.h> #include <util/string/cast.h> #include <util/digest/numeric.h> #include <util/network/ip.h> @@ -41,3 +42,18 @@ void THttpServerOptions::BindAddresses(TBindAddresses& ret) const { ret.push_back(Host ? TNetworkAddress(Host, Port) : TNetworkAddress(Port)); } } + +void THttpServerOptions::DebugPrint(IOutputStream& stream) const noexcept { + stream << "Port: " << Port << "\n"; + stream << "Host: " << Host << "\n"; + stream << "KeepAliveEnabled: " << KeepAliveEnabled << "\n"; + stream << "CompressionEnabled: " << CompressionEnabled << "\n"; + stream << "nThreads: " << nThreads << "\n"; + stream << "nListenerThreads: " << nListenerThreads << "\n"; + stream << "MaxQueueSize: " << MaxQueueSize << "\n"; + stream << "nFThreads: " << nFThreads << "\n"; + stream << "MaxFQueueSize: " << MaxFQueueSize << "\n"; + stream << "MaxConnections: " << MaxConnections << "\n"; + stream << "MaxRequestsPerConnection: " << MaxRequestsPerConnection << "\n"; + stream << "ClientTimeout(ms): " << ClientTimeout.MilliSeconds() << "\n"; +} |