Home
last modified time | relevance | path

Searched refs:extra_headers (Results 1 – 25 of 62) sorted by relevance

123

/external/cronet/net/websockets/
Dwebsocket_test_util.cc67 const WebSocketExtraHeaders& extra_headers) { in WebSocketStandardRequest() argument
70 extra_headers); in WebSocketStandardRequest()
79 const WebSocketExtraHeaders& extra_headers) { in WebSocketStandardRequestWithCookies() argument
105 for (const auto& [key, value] : extra_headers) in WebSocketStandardRequestWithCookies()
112 std::string WebSocketStandardResponse(const std::string& extra_headers) { in WebSocketStandardResponse() argument
119 extra_headers.c_str()); in WebSocketStandardResponse()
141 const WebSocketExtraHeaders& extra_headers) { in WebSocketHttp2Request() argument
157 for (const auto& header : extra_headers) { in WebSocketHttp2Request()
164 const WebSocketExtraHeaders& extra_headers) { in WebSocketHttp2Response() argument
167 for (const auto& header : extra_headers) { in WebSocketHttp2Response()
Dwebsocket_test_util.h63 const WebSocketExtraHeaders& extra_headers);
74 const WebSocketExtraHeaders& extra_headers);
79 std::string WebSocketStandardResponse(const std::string& extra_headers);
91 const WebSocketExtraHeaders& extra_headers);
96 const WebSocketExtraHeaders& extra_headers);
/external/cronet/net/spdy/
Dspdy_test_util_common.h84 void AppendToHeaderBlock(const char* const extra_headers[],
344 spdy::SpdySerializedFrame ConstructSpdyGet(const char* const extra_headers[],
351 const char* const extra_headers[],
362 spdy::SpdySerializedFrame ConstructSpdyPush(const char* const extra_headers[],
367 spdy::SpdySerializedFrame ConstructSpdyPush(const char* const extra_headers[],
383 const char* const extra_headers[],
408 const char* const extra_headers[],
419 const char* const* const extra_headers,
430 const char* const extra_headers[],
437 const char* const extra_headers[],
[all …]
Dspdy_test_util_common.cc105 void AppendToHeaderBlock(const char* const extra_headers[], in AppendToHeaderBlock() argument
112 DCHECK(extra_headers) << "NULL header value pair list"; in AppendToHeaderBlock()
118 absl::string_view key(extra_headers[i * 2]); in AppendToHeaderBlock()
119 absl::string_view value(extra_headers[i * 2 + 1]); in AppendToHeaderBlock()
741 const char* const extra_headers[], in ConstructSpdyGet() argument
748 AppendToHeaderBlock(extra_headers, extra_header_count, &block); in ConstructSpdyGet()
754 const char* const extra_headers[], in ConstructSpdyConnect() argument
762 AppendToHeaderBlock(extra_headers, extra_header_count, &block); in ConstructSpdyConnect()
767 const char* const extra_headers[], in ConstructSpdyPush() argument
781 AppendToHeaderBlock(extra_headers, extra_header_count, &headers_header_block); in ConstructSpdyPush()
[all …]
Dspdy_http_utils_unittest.cc46 request.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, "Chrome/1.1"); in TEST()
48 CreateSpdyHeadersFromHttpRequest(request, request.extra_headers, &headers); in TEST()
62 request.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, "Chrome/1.1"); in TEST()
64 CreateSpdyHeadersFromHttpRequest(request, request.extra_headers, &headers); in TEST()
Dbidirectional_stream_spdy_impl.cc292 http_request_info.extra_headers = request_info_->extra_headers; in SendRequestHeadersHelper()
295 http_request_info.extra_headers, &headers); in SendRequestHeadersHelper()
Dspdy_proxy_client_socket.cc381 request_.extra_headers.MergeFrom(proxy_delegate_headers); in DoSendRequest()
386 &request_line, &request_.extra_headers); in DoSendRequest()
390 request_line, &request_.extra_headers); in DoSendRequest()
393 CreateSpdyHeadersFromHttpRequest(request_, request_.extra_headers, &headers); in DoSendRequest()
/external/webrtc/examples/peerconnection/server/
Dpeer_channel.cc108 std::string extra_headers(GetPeerIdHeader()); in ForwardRequestToPeer() local
111 ds->Send("200 OK", true, ds->content_type(), extra_headers, ds->data()); in ForwardRequestToPeer()
114 peer->QueueResponse("200 OK", ds->content_type(), extra_headers, in ForwardRequestToPeer()
129 const std::string& extra_headers, in QueueResponse() argument
135 waiting_socket_->Send(status, true, content_type, extra_headers, data); in QueueResponse()
145 qr.extra_headers = extra_headers; in QueueResponse()
157 response.extra_headers, response.data); in SetWaitingSocket()
Dpeer_channel.h49 const std::string& extra_headers,
56 std::string status, content_type, extra_headers, data; member
Ddata_socket.cc125 const std::string& extra_headers, in Send() argument
144 if (!extra_headers.empty()) { in Send()
145 buffer += extra_headers; in Send()
/external/cronet/net/base/
Dtest_proxy_delegate.cc43 HttpRequestHeaders* extra_headers) { in OnBeforeTunnelRequest() argument
45 if (extra_headers) in OnBeforeTunnelRequest()
46 extra_headers->SetHeader("Foo", ProxyServerToProxyUri(proxy_server)); in OnBeforeTunnelRequest()
Dproxy_delegate.h50 HttpRequestHeaders* extra_headers) = 0;
/external/cronet/net/http/
Dhttp_proxy_client_socket.cc55 request_.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in HttpProxyClientSocket()
345 HttpRequestHeaders extra_headers; in DoSendRequest() local
347 auth_->AddAuthorizationHeader(&extra_headers); in DoSendRequest()
351 extra_headers.HasHeader(HttpRequestHeaders::kProxyAuthorization); in DoSendRequest()
357 extra_headers.MergeFrom(proxy_delegate_headers); in DoSendRequest()
361 if (!request_.extra_headers.GetHeader(HttpRequestHeaders::kUserAgent, in DoSendRequest()
365 BuildTunnelRequest(endpoint_, extra_headers, user_agent, &request_line_, in DoSendRequest()
Dproxy_client_socket.cc27 const HttpRequestHeaders& extra_headers, in BuildTunnelRequest() argument
44 request_headers->MergeFrom(extra_headers); in BuildTunnelRequest()
Dhttp_cache_transaction.cc1130 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoGetBackendComplete()
1306 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoOpenOrCreateEntryComplete()
1387 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoCreateEntryComplete()
1517 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoAddToEntryComplete()
1538 partial_->RestoreHeaders(&custom_request_->extra_headers); in DoAddToEntryComplete()
1822 &custom_request_->extra_headers); in DoCompletePartialCacheValidation()
2659 if (request_->extra_headers.HasHeader(HttpRequestHeaders::kRange)) in SetRequest()
2663 if (HeaderMatches(request_->extra_headers, special_header.search)) { in SetRequest()
2675 if (request_->extra_headers.GetHeader( in SetRequest()
2691 empty, &request_->extra_headers); in SetRequest()
[all …]
Dhttp_vary_data_unittest.cc30 request.extra_headers.Clear(); in Init()
32 request.extra_headers.SetHeader(key, value); in Init()
Dbidirectional_stream_request_info.h41 HttpRequestHeaders extra_headers; member
Dhttp_network_layer_unittest.cc331 request_info.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in TEST_F()
371 request_info.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in TEST_F()
405 request_info.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in TEST_F()
/external/cronet/net/url_request/
Dreport_sender.cc77 HttpRequestHeaders extra_headers; in Send() local
78 extra_headers.SetHeader(HttpRequestHeaders::kContentType, content_type); in Send()
79 url_request->SetExtraRequestHeaders(extra_headers); in Send()
Durl_request_http_job.cc347 request_info_.extra_headers.RemoveHeader(HttpRequestHeaders::kReferer); in OnGotFirstPartySetCacheFilterMatchInfo()
357 request_info_.extra_headers.SetHeader(HttpRequestHeaders::kReferer, in OnGotFirstPartySetCacheFilterMatchInfo()
361 request_info_.extra_headers.SetHeaderIfMissing( in OnGotFirstPartySetCacheFilterMatchInfo()
499 request_, request_info_.extra_headers, in StartTransaction()
519 request_info_.extra_headers = headers.value(); in NotifyBeforeStartTransactionCallback()
615 request_info_.extra_headers.SetAcceptEncodingIfMissing( in AddExtraHeaders()
625 request_info_.extra_headers.SetHeaderIfMissing( in AddExtraHeaders()
728 request_info_.extra_headers.SetHeader(HttpRequestHeaders::kCookie, in SetCookieHeaderAndStart()
1135 request_info_.extra_headers.RemoveHeader(HttpRequestHeaders::kCookie); in RestartTransactionWithAuth()
1162 request_info_.extra_headers.CopyFrom(headers); in SetExtraRequestHeaders()
/external/cronet/net/quic/
Dquic_proxy_client_socket.cc349 request_.extra_headers.MergeFrom(proxy_delegate_headers); in DoSendRequest()
354 &request_line, &request_.extra_headers); in DoSendRequest()
358 request_line, &request_.extra_headers); in DoSendRequest()
361 CreateSpdyHeadersFromHttpRequest(request_, request_.extra_headers, &headers); in DoSendRequest()
Dbidirectional_stream_quic_impl.cc117 http_request_info.extra_headers = request_info_->extra_headers; in WriteHeaders()
120 http_request_info.extra_headers, &headers); in WriteHeaders()
/external/python/cpython2/Lib/
Dxmlrpclib.py1366 extra_headers = [
1370 extra_headers = None
1372 return host, extra_headers, x509
1427 extra_headers = self._extra_headers
1428 if extra_headers:
1429 if isinstance(extra_headers, DictType):
1430 extra_headers = extra_headers.items()
1431 for key, value in extra_headers:
/external/cronet/net/test/embedded_test_server/
Dcontrollable_http_response.cc77 const std::vector<std::string>& extra_headers) { in Send() argument
86 for (auto& header : extra_headers) in Send()
/external/cronet/net/data/websocket/
Dset-hsts_wsh.py12 request.extra_headers.append(

123