| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_HTTP_HTTP_PROXY_UTILS_H_ | |
| 6 #define NET_HTTP_HTTP_PROXY_UTILS_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 namespace net { | |
| 12 | |
| 13 struct HttpRequestInfo; | |
| 14 class HttpRequestHeaders; | |
| 15 class HostPortPair; | |
| 16 | |
| 17 // The HTTP CONNECT method for establishing a tunnel connection is documented | |
| 18 // in draft-luotonen-web-proxy-tunneling-01.txt and RFC 2817, Sections 5.2 and | |
| 19 // 5.3. | |
| 20 void BuildTunnelRequest(const HttpRequestInfo& request_info, | |
| 21 const HttpRequestHeaders& auth_headers, | |
| 22 const HostPortPair& endpoint, | |
| 23 std::string* request_line, | |
| 24 HttpRequestHeaders* request_headers); | |
| 25 | |
| 26 } // namespace net | |
| 27 | |
| 28 #endif // NET_HTTP_HTTP_PROXY_UTILS_H_ | |
| OLD | NEW |