Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Unified Diff: net/tools/balsa/balsa_headers.cc

Issue 847813005: Updates quic_client_bin.cc to be more user friendly, and support more (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Refactoring_code_for_readability_83493327
Patch Set: Added DumpHeadersToString to dump response headers Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/tools/balsa/balsa_headers.cc
diff --git a/net/tools/balsa/balsa_headers.cc b/net/tools/balsa/balsa_headers.cc
index a77b75b89e5d99aa569836fd9453949d6c2f3afb..c1daa4218e9a9a7ddbffab3911669722dcc90bf3 100644
--- a/net/tools/balsa/balsa_headers.cc
+++ b/net/tools/balsa/balsa_headers.cc
@@ -771,6 +771,11 @@ void BalsaHeaders::DumpToString(std::string* str) const {
return;
}
+ DumpHeadersToString(str);
+}
+
+void BalsaHeaders::DumpHeadersToString(std::string* str) const {
+ const base::StringPiece firstline = first_line();
// If the header is complete, then just dump them with the logical key value
// pair.
str->reserve(str->size() + GetSizeForWriteBuffer());

Powered by Google App Engine
This is Rietveld 408576698