Searched refs:raw_headers (Results 1 - 25 of 34) sorted by relevance

12

/external/chromium_org/components/data_reduction_proxy/browser/
H A Ddata_reduction_proxy_tamper_detection_unittest.cc243 std::string raw_headers(test[i].raw_header);
244 HeadersToRaw(&raw_headers);
246 new net::HttpResponseHeaders(raw_headers));
367 std::string raw_headers(test[i].raw_header);
368 HeadersToRaw(&raw_headers);
370 new net::HttpResponseHeaders(raw_headers));
500 std::string raw_headers(test[i].raw_header);
501 HeadersToRaw(&raw_headers);
503 new net::HttpResponseHeaders(raw_headers));
576 std::string raw_headers(tes
[all...]
H A Ddata_reduction_proxy_usage_stats_unittest.cc300 std::string raw_headers(test_cases[i].headers);
301 HeadersToRaw(&raw_headers);
303 new net::HttpResponseHeaders(raw_headers));
413 std::string raw_headers(test_cases[i].headers);
414 HeadersToRaw(&raw_headers);
418 raw_headers));
/external/chromium_org/content/test/net/
H A Durl_request_abort_on_end_job.cc55 std::string raw_headers; local
58 raw_headers.append(
65 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\n", std::string("\0", 1));
66 info->headers = new net::HttpResponseHeaders(raw_headers);
H A Durl_request_slow_download_job.cc242 std::string raw_headers; local
247 raw_headers.append(
251 raw_headers.append(
257 raw_headers.append(base::StringPrintf(
264 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\n", std::string("\0", 1));
265 info->headers = new net::HttpResponseHeaders(raw_headers);
/external/chromium_org/chrome/renderer/
H A Dsecurity_filter_peer.cc107 std::string raw_headers; local
108 raw_headers.append("HTTP/1.1 200 OK");
109 raw_headers.push_back('\0');
114 raw_headers.append("cache-control: no-cache");
115 raw_headers.push_back('\0');
117 raw_headers.append("content-type: ");
118 raw_headers.append(mime_type);
119 raw_headers.push_back('\0');
121 raw_headers.push_back('\0');
123 new net::HttpResponseHeaders(raw_headers);
[all...]
/external/chromium_org/net/spdy/
H A Dspdy_http_utils.cc61 std::string raw_headers(version);
62 raw_headers.push_back(' ');
63 raw_headers.append(status);
64 raw_headers.push_back('\0');
85 raw_headers.append(it->first.substr(1));
87 raw_headers.append(it->first);
88 raw_headers.push_back(':');
89 raw_headers.append(tval);
90 raw_headers.push_back('\0');
95 response->headers = new HttpResponseHeaders(raw_headers);
[all...]
/external/chromium_org/extensions/browser/
H A Dextension_protocols.cc543 std::string raw_headers; local
544 raw_headers.append("HTTP/1.1 200 OK");
546 raw_headers.append(1, '\0');
547 raw_headers.append("Content-Security-Policy: ");
548 raw_headers.append(content_security_policy);
552 raw_headers.append(1, '\0');
553 raw_headers.append("Access-Control-Allow-Origin: *");
564 raw_headers.append(1, '\0');
565 raw_headers.append("ETag: \"");
566 raw_headers
[all...]
/external/chromium_org/components/captive_portal/
H A Dcaptive_portal_testing_utils.cc17 std::string raw_headers = net::HttpUtil::AssembleRawHeaders( local
19 return new net::HttpResponseHeaders(raw_headers);
/external/chromium_org/net/test/url_request/
H A Durl_request_mock_http_job.cc83 std::string raw_headers; local
84 base::ReadFileToString(header_file, &raw_headers);
85 return raw_headers;
174 void URLRequestMockHTTPJob::GetRawHeaders(std::string raw_headers) { argument
176 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\r\n", "\n");
178 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\n", std::string("\0", 1));
179 raw_headers_ = raw_headers;
H A Durl_request_mock_http_job.h81 void GetRawHeaders(std::string raw_headers);
/external/chromium_org/net/http/
H A Dproxy_client_socket.cc91 std::string raw_headers = local
94 response->headers = new HttpResponseHeaders(raw_headers);
H A Dhttp_util.cc583 std::string raw_headers; local
584 raw_headers.reserve(input_len);
596 raw_headers.append(input_begin, status_line_end);
614 raw_headers.push_back(' ');
615 raw_headers.append(FindFirstNonLWS(line_begin, line_end), line_end);
618 raw_headers.push_back('\n');
621 raw_headers.append(line_begin, line_end);
628 raw_headers.append("\n\n", 2);
633 raw_headers.erase(std::remove(raw_headers
[all...]
H A Dhttp_response_headers_unittest.cc20 const char* raw_headers; member in struct:__anon9308::TestData
47 std::string raw_headers("HTTP/1.1 200 OK\n");
48 raw_headers += "Cache-Control: ";
49 raw_headers += cache_control;
50 raw_headers += "\n";
51 HeadersToRaw(&raw_headers);
52 headers_ = new net::HttpResponseHeaders(raw_headers);
93 std::string raw_headers(test.raw_headers);
94 HeadersToRaw(&raw_headers);
326 const char* raw_headers; member in struct:__anon9308::PersistData
614 const std::string raw_headers; member in struct:__anon9308::ContentTypeTestData
[all...]
H A Dhttp_response_headers.h48 // Parses the given raw_headers. raw_headers should be formatted thus:
56 explicit HttpResponseHeaders(const std::string& raw_headers);
285 const std::string& raw_headers() const { return raw_headers_; } function in class:net::HttpResponseHeaders
343 // Replaces the current headers with the merged version of |raw_headers| and
347 void MergeWithHeaders(const std::string& raw_headers,
H A Dhttp_cache_unittest.cc425 std::string raw_headers(net::HttpUtil::AssembleRawHeaders(response.data(),
428 new net::HttpResponseHeaders(raw_headers));
444 void CreateTruncatedEntry(std::string raw_headers, MockHttpCache* cache) { argument
450 raw_headers = net::HttpUtil::AssembleRawHeaders(raw_headers.data(),
451 raw_headers.size());
456 response.headers = new net::HttpResponseHeaders(raw_headers);
3136 std::string raw_headers("HTTP/1.1 200 OK\n"
3141 CreateTruncatedEntry(raw_headers, &cache);
4357 std::string raw_headers(kRangeGET_TransactionO
[all...]
H A Dhttp_response_headers.cc270 void HttpResponseHeaders::MergeWithHeaders(const std::string& raw_headers, argument
272 std::string new_raw_headers(raw_headers);
1384 std::string raw_headers; local
1392 raw_headers.append(header_line);
1393 raw_headers.push_back('\0');
1395 raw_headers.push_back('\0');
1396 *http_response_headers = new HttpResponseHeaders(raw_headers);
H A Dhttp_stream_parser.cc31 std::string raw_headers = headers.raw_headers(); local
32 const char* null_separated_headers = raw_headers.c_str();
/external/chromium_org/content/browser/streams/
H A Dstream_handle_impl.cc39 new net::HttpResponseHeaders(response_headers->raw_headers());
/external/chromium_org/net/quic/
H A Dquic_in_memory_cache.cc137 string raw_headers = local
141 new HttpResponseHeaders(raw_headers);
/external/chromium_org/net/websockets/
H A Dwebsocket_handshake_handler_test.cc211 std::string raw_headers = local
215 response_info.headers = new HttpResponseHeaders(raw_headers);
/external/chromium_org/content/browser/appcache/
H A Dappcache_response_unittest.cc159 std::string raw_headers(kHttpHeaders, arraysize(kHttpHeaders));
161 MakeHttpResponseInfo(raw_headers), body.get(), strlen(kHttpBody));
242 net::HttpResponseInfo* MakeHttpResponseInfo(const std::string& raw_headers) { argument
247 info->headers = new net::HttpResponseHeaders(raw_headers);
380 std::string raw_headers(kHttpHeaders, arraysize(kHttpHeaders));
381 net::HttpResponseInfo* head = MakeHttpResponseInfo(raw_headers);
H A Dappcache_url_request_job_unittest.cc298 std::string raw_headers(kHttpBasicHeaders, arraysize(kHttpBasicHeaders));
300 MakeHttpResponseInfo(raw_headers), body.get(), strlen(kHttpBasicBody));
370 net::HttpResponseInfo* MakeHttpResponseInfo(const std::string& raw_headers) { argument
375 info->headers = new net::HttpResponseHeaders(raw_headers);
657 std::string raw_headers(kHttpHeaders, arraysize(kHttpHeaders));
659 MakeHttpResponseInfo(raw_headers), body.get(), kBlockSize * 3);
/external/chromium_org/content/child/
H A Dresource_dispatcher_unittest.cc248 std::string raw_headers(kTestRedirectHeaders);
249 std::replace(raw_headers.begin(), raw_headers.end(), '\n', '\0');
250 head.headers = new net::HttpResponseHeaders(raw_headers);
262 std::string raw_headers(kTestPageHeaders);
263 std::replace(raw_headers.begin(), raw_headers.end(), '\n', '\0');
264 head.headers = new net::HttpResponseHeaders(raw_headers);
/external/chromium_org/content/browser/loader/
H A Dresource_dispatcher_host_unittest.cc1934 std::string raw_headers("HTTP/1.1 200 OK\n\n");
1936 SetResponse(raw_headers, response_data);
1956 std::string raw_headers("HTTP/1.1 200 OK\n"
1959 SetResponse(raw_headers, response_data);
2037 std::string raw_headers("HTTP/1.1 403 Forbidden\n"
2041 SetResponse(raw_headers, response_data);
2076 std::string raw_headers("HTTP\n"
2087 SetResponse(raw_headers, response_data);
2116 std::string raw_headers("HTTP\n"
2122 SetResponse(raw_headers, response_dat
[all...]
/external/chromium_org/chrome/browser/extensions/api/dial/
H A Ddial_service.cc329 std::string raw_headers = local
331 VLOG(3) << "raw_headers: " << raw_headers << "\n";
333 new HttpResponseHeaders(raw_headers);

Completed in 7180 milliseconds

12