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.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/http/http_util.h b/net/http/http_util.h
index 631790b..f41c4e4 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/ref_counted.h"
#include "base/string_tokenizer.h"
#include "googleurl/src/gurl.h"
#include "net/http/http_byte_range.h"
@@ -19,7 +20,11 @@
namespace net {
+class HttpAuthController;
+struct HttpRequestInfo;
+class HttpRequestHeaders;
class HttpStream;
+class UploadDataStream;
class HttpUtil {
public:
@@ -159,6 +164,19 @@ class HttpUtil {
const std::string& header_value,
std::string* headers);
+ // Constructs |request_headers| from the information contained in
+ // |request_info|. The correct server and proxy auth headers will
+ // be populated from |auth_controllers| if |enable_server_auth| or
+ // |enable_proxy_auth| is true.
+ static void BuildRequestHeaders(const HttpRequestInfo* request_info,
+ const UploadDataStream* upload_data_stream,
+ const scoped_refptr<HttpAuthController>
+ auth_controllers[],
+ bool enable_server_auth,
+ bool enable_proxy_auth,
+ bool enable_full_url,
+ HttpRequestHeaders* request_headers);
+
// 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