Searched refs:HttpUtil (Results 1 - 25 of 73) sorted by relevance

123

/external/chromium_org/net/http/
H A Dhttp_util_icu.cc16 std::string HttpUtil::PathForRequest(const GURL& url) {
25 std::string HttpUtil::SpecForRequest(const GURL& url) {
H A Dhttp_util_unittest.cc12 using net::HttpUtil;
51 EXPECT_FALSE(HttpUtil::IsSafeHeader(unsafe_headers[i]))
53 EXPECT_FALSE(HttpUtil::IsSafeHeader(StringToUpperASCII(std::string(
97 EXPECT_TRUE(HttpUtil::IsSafeHeader(safe_headers[i])) << safe_headers[i];
98 EXPECT_TRUE(HttpUtil::IsSafeHeader(StringToUpperASCII(std::string(
118 bool result = HttpUtil::HasHeader(tests[i].headers, tests[i].name);
142 HttpUtil::StripHeaders(headers, header_names,
149 HttpUtil::HeadersIterator it(headers.begin(), headers.end(), "\r\n");
169 HttpUtil::HeadersIterator it(headers.begin(), headers.end(), "\n");
185 HttpUtil
[all...]
H A Dproxy_client_socket.cc64 HttpUtil::MapStatusCodeForHistogram(http_status_code),
65 HttpUtil::GetStatusCodesForHistogram());
69 HttpUtil::MapStatusCodeForHistogram(http_status_code),
70 HttpUtil::GetStatusCodesForHistogram());
92 HttpUtil::AssembleRawHeaders(fake_response_headers.data(),
H A Dhttp_util.cc43 // HttpUtil -------------------------------------------------------------------
46 size_t HttpUtil::FindDelimiter(const std::string& line,
80 void HttpUtil::ParseContentType(const std::string& content_type_str,
186 bool HttpUtil::ParseRanges(const std::string& headers,
189 HttpUtil::HeadersIterator it(headers.begin(), headers.end(), "\r\n");
207 bool HttpUtil::ParseRangeHeader(const std::string& ranges_specifier,
278 bool HttpUtil::HasHeader(const std::string& headers, const char* name) {
330 bool HttpUtil::IsSafeHeader(const std::string& name) {
343 bool HttpUtil::IsValidHeaderName(const std::string& name) {
345 return HttpUtil
[all...]
H A Dhttp_auth_challenge_tokenizer.cc23 HttpUtil::NameValuePairsIterator HttpAuthChallengeTokenizer::param_pairs()
25 return HttpUtil::NameValuePairsIterator(params_begin_, params_end_, ',');
58 HttpUtil::TrimLWS(&params_begin_, &params_end_);
H A Dhttp_auth_challenge_tokenizer_unittest.cc14 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
30 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
46 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
62 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
79 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
96 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
120 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
134 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
159 HttpUtil::NameValuePairsIterator parameters = challenge.param_pairs();
H A Dhttp_basic_state.cc53 const std::string path = using_proxy_ ? HttpUtil::SpecForRequest(url)
54 : HttpUtil::PathForRequest(url);
H A Dhttp_auth_handler_digest.cc119 HttpUtil::NameValuePairsIterator parameters = challenge->param_pairs();
205 HttpUtil::NameValuePairsIterator parameters = challenge->param_pairs();
256 HttpUtil::ValuesIterator qop_values(value.begin(), value.end(), ',');
314 *path = HttpUtil::PathForRequest(url);
355 HttpUtil::Quote(
357 authorization += ", realm=" + HttpUtil::Quote(original_realm_);
358 authorization += ", nonce=" + HttpUtil::Quote(nonce_);
359 authorization += ", uri=" + HttpUtil::Quote(path);
366 // No need to call HttpUtil::Quote() as the response digest cannot contain
371 authorization += ", opaque=" + HttpUtil
[all...]
H A Dhttp_auth_challenge_tokenizer.h42 HttpUtil::NameValuePairsIterator param_pairs() const;
H A Dhttp_request_headers.cc87 DCHECK(HttpUtil::IsValidHeaderName(key.as_string()));
88 DCHECK(HttpUtil::IsValidHeaderValue(value.as_string()));
98 DCHECK(HttpUtil::IsValidHeaderName(key.as_string()));
99 DCHECK(HttpUtil::IsValidHeaderValue(value.as_string()));
138 HttpUtil::TrimLWS(&header_value_begin, &header_value_end);
H A Dhttp_auth_handler_basic.cc41 HttpUtil::NameValuePairsIterator parameters = tokenizer.param_pairs();
H A Dhttp_security_headers.cc101 HttpUtil::TrimLWS(&start, &end);
121 std::string unquoted = HttpUtil::Unquote(value);
224 unquoted = HttpUtil::Unquote(tokenizer.token());
H A Dhttp_response_headers.cc151 HttpUtil::MapStatusCodeForHistogram(
156 HttpUtil::GetStatusCodesForHistogram());
438 HttpUtil::HeadersIterator headers(line_end + 1, raw_headers_.end(),
508 DCHECK(!HttpUtil::IsNonCoalescingHeader(name));
788 HttpUtil::IsNonCoalescingHeader(name_begin, name_end)) {
791 HttpUtil::ValuesIterator it(values_begin, values_end, ',');
848 HttpUtil::TrimLWS(&item, &item_end);
899 HttpUtil::ParseContentType(value, mime_type, charset, &had_charset, NULL);
1203 return HttpUtil::HasStrongValidators(GetHttpVersion(),
1264 HttpUtil
[all...]
H A Dhttp_content_disposition.cc352 HttpUtil::TrimLWS(&type_begin, &type_end);
357 if (!HttpUtil::IsToken(type_begin, type_end))
406 HttpUtil::NameValuePairsIterator iter(pos, end, ';');
/external/chromium_org/net/url_request/
H A Durl_range_request_job.cc25 if (!HttpUtil::ParseRangeHeader(range_header, &ranges_)) {
H A Durl_request_redirect_job.cc110 HttpUtil::AssembleRawHeaders(header_string.c_str(),
/external/chromium_org/chromecast/shell/browser/
H A Dcast_http_user_agent_settings.cc32 accept_language_ = net::HttpUtil::GenerateAcceptLanguageHeader(
/external/chromium_org/content/browser/
H A Dtransition_request_manager_unittest.cc35 new net::HttpResponseHeaders(net::HttpUtil::AssembleRawHeaders(
53 new net::HttpResponseHeaders(net::HttpUtil::AssembleRawHeaders(
70 new net::HttpResponseHeaders(net::HttpUtil::AssembleRawHeaders(
92 new net::HttpResponseHeaders(net::HttpUtil::AssembleRawHeaders(
/external/chromium_org/chrome/browser/net/
H A Dchrome_http_user_agent_settings.cc18 net::HttpUtil::GenerateAcceptLanguageHeader(last_pref_accept_language_);
38 net::HttpUtil::GenerateAcceptLanguageHeader(new_pref_accept_language);
/external/chromium_org/components/captive_portal/
H A Dcaptive_portal_testing_utils.cc17 std::string raw_headers = net::HttpUtil::AssembleRawHeaders(
/external/chromium_org/net/proxy/
H A Dproxy_server.cc102 HttpUtil::TrimLWS(&begin, &end);
149 HttpUtil::TrimLWS(&begin, &end);
157 if (HttpUtil::IsLWS(*space)) {
222 HttpUtil::TrimLWS(&begin, &end);
/external/chromium_org/net/quic/
H A Dquic_in_memory_cache.cc130 int headers_end = HttpUtil::LocateEndOfHeaders(file_contents.data(),
138 HttpUtil::AssembleRawHeaders(file_contents.data(), headers_end);
/external/chromium_org/media/blink/
H A Dcache_util.cc41 !net::HttpUtil::HasStrongValidators(
/external/chromium_org/net/spdy/
H A Dspdy_http_utils.cc123 (*headers)["url"] = HttpUtil::PathForRequest(info.url);
125 (*headers)["url"] = HttpUtil::SpecForRequest(info.url);
135 (*headers)[":path"] = HttpUtil::PathForRequest(info.url);
/external/chromium_org/net/websockets/
H A Dwebsocket_handshake_handler.cc57 net::HttpUtil::HeadersIterator iter(headers.begin(), headers.end(), "\r\n");
78 if (*name_begin == *name_end || net::HttpUtil::IsLWS(**name_begin))
80 net::HttpUtil::TrimLWS(name_begin, name_end);
84 // Similar to HttpUtil::StripHeaders, but it preserves malformed headers, that
163 HttpUtil::LocateEndOfHeaders(input.data(), input.size(), 0);
188 HttpUtil::AppendHeaderIfMissing(name.c_str(), value, &headers_);
239 HttpUtil::HeadersIterator iter(headers_.begin(), headers_.end(), "\r\n");
327 original_header_length_ = HttpUtil::LocateEndOfHeaders(

Completed in 328 milliseconds

123