summaryrefslogtreecommitdiffstats
path: root/net/http/http_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_util.h')
-rw-r--r--net/http/http_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/http/http_util.h b/net/http/http_util.h
index 0bc5687..7560b92 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -194,6 +194,15 @@ class NET_EXPORT HttpUtil {
const std::string& last_modified_header,
const std::string& date_header);
+ // Gets a vector of common HTTP status codes for histograms of status
+ // codes. Currently returns everything in the range [100, 600), plus 0
+ // (for invalid responses/status codes).
+ static std::vector<int> GetStatusCodesForHistogram();
+
+ // Maps an HTTP status code to one of the status codes in the vector
+ // returned by GetStatusCodesForHistogram.
+ static int MapStatusCodeForHistogram(int code);
+
// Used to iterate over the name/value pairs of HTTP headers. To iterate
// over the values in a multi-value header, use ValuesIterator.
// See AssembleRawHeaders for joining line continuations (this iterator