Loading src/http.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,7 @@ libhttppp::HttpClient::HttpClient(const HttpUrl& desturl) if (auto *sslsock = dynamic_cast<netplus::ssl*>(_cltsock.get())) { const std::string &alpn = sslsock->getSelectedAlpn(); _isH2 = (alpn == "h2"); std::cerr << "[HttpClient] ALPN negotiated: '" << alpn << "' isH2=" << _isH2 << std::endl; } else { std::cerr << "[HttpClient] Not an SSL socket" << std::endl; } Loading Loading @@ -910,6 +911,8 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq // --------------------------------------------------------- // Parse header // --------------------------------------------------------- std::cerr << "[HttpClient::Post] Raw response (" << raw.size() << " bytes): " << std::string(raw.data(), std::min(raw.size(), (size_t)512)) << std::endl; libhttppp::HttpResponse res; size_t parsed_hsize = res.parse(raw.data(), raw.size()); Loading Loading
src/http.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,7 @@ libhttppp::HttpClient::HttpClient(const HttpUrl& desturl) if (auto *sslsock = dynamic_cast<netplus::ssl*>(_cltsock.get())) { const std::string &alpn = sslsock->getSelectedAlpn(); _isH2 = (alpn == "h2"); std::cerr << "[HttpClient] ALPN negotiated: '" << alpn << "' isH2=" << _isH2 << std::endl; } else { std::cerr << "[HttpClient] Not an SSL socket" << std::endl; } Loading Loading @@ -910,6 +911,8 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq // --------------------------------------------------------- // Parse header // --------------------------------------------------------- std::cerr << "[HttpClient::Post] Raw response (" << raw.size() << " bytes): " << std::string(raw.data(), std::min(raw.size(), (size_t)512)) << std::endl; libhttppp::HttpResponse res; size_t parsed_hsize = res.parse(raw.data(), raw.size()); Loading