Home
last modified time | relevance | path

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

12

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

12