Home
last modified time | relevance | path

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

12

/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpEngine.java118 final RequestHeaders requestHeaders; field in HttpEngine
147 public HttpEngine(HttpURLConnectionImpl policy, String method, RawHeaders requestHeaders, in HttpEngine() argument
160 this.requestHeaders = new RequestHeaders(uri, new RawHeaders(requestHeaders)); in HttpEngine()
187 if (requestHeaders.isOnlyIfCached() && responseSource.requiresConnection()) { in sendRequest()
216 policy.responseCache.get(uri, method, requestHeaders.getHeaders().toMultimap(false)); in initResponseSource()
233 this.responseSource = cachedResponseHeaders.chooseResponseSource(now, requestHeaders); in initResponseSource()
293 requestHeaders.getHeaders().setRequestLine(getRequestLine()); in connect()
346 return requestHeaders; in getRequestHeaders()
394 if (!responseHeaders.isCacheable(requestHeaders)) { in maybeCache()
494 requestHeaders.getHeaders().setRequestLine(getRequestLine()); in prepareRawRequestHeaders()
[all …]
DSpdyTransport.java49 RawHeaders requestHeaders = httpEngine.requestHeaders.getHeaders(); in writeRequestHeaders() local
52 requestHeaders.addSpdyRequestHeaders(httpEngine.method, HttpEngine.requestPath(url), version, in writeRequestHeaders()
56 stream = spdyConnection.newStream(requestHeaders.toNameValueBlock(), hasRequestBody, in writeRequestHeaders()
DHttpTransport.java70 boolean chunked = httpEngine.requestHeaders.isChunked(); in createRequestBody()
74 httpEngine.requestHeaders.setChunked(); in createRequestBody()
91 httpEngine.requestHeaders.setContentLength(fixedContentLength); in createRequestBody()
97 int contentLength = httpEngine.requestHeaders.getContentLength(); in createRequestBody()
132 int contentLength = httpEngine.requestHeaders.getContentLength(); in writeRequestHeaders()
133 RawHeaders headersToSend = httpEngine.requestHeaders.getHeaders(); in writeRequestHeaders()
162 if (httpEngine.requestHeaders.hasConnectionClose()) { in makeReusable()
DHttpsURLConnectionImpl.java427 public HttpsEngine(HttpURLConnectionImpl policy, String method, RawHeaders requestHeaders, in HttpsEngine() argument
430 super(policy, method, requestHeaders, connection, requestBody); in HttpsEngine()
448 String userAgent = requestHeaders.getUserAgent(); in getTunnelConfig()
455 requestHeaders.getProxyAuthorization()); in getTunnelConfig()
DHttpURLConnectionImpl.java272 private HttpEngine newHttpEngine(String method, RawHeaders requestHeaders, in newHttpEngine() argument
275 return new HttpEngine(this, method, requestHeaders, connection, requestBody); in newHttpEngine()
278 this, method, requestHeaders, connection, requestBody); in newHttpEngine()
DHttpResponseCache.java112 Map<String, List<String>> requestHeaders) { in get() argument
127 if (!entry.matches(uri, requestMethod, requestHeaders)) { in get()
515 Map<String, List<String>> requestHeaders) { in matches() argument
519 requestHeaders); in matches()
/external/webkit/Source/WebCore/loader/
DCrossOriginPreflightResultCache.cpp126 …flightResultCacheItem::allowsCrossOriginHeaders(const HTTPHeaderMap& requestHeaders, String& error… in allowsCrossOriginHeaders() argument
128 HTTPHeaderMap::const_iterator end = requestHeaders.end(); in allowsCrossOriginHeaders()
129 for (HTTPHeaderMap::const_iterator it = requestHeaders.begin(); it != end; ++it) { in allowsCrossOriginHeaders()
138 …wsRequest(bool includeCredentials, const String& method, const HTTPHeaderMap& requestHeaders) const in allowsRequest()
147 if (!allowsCrossOriginHeaders(requestHeaders, ignoredExplanation)) in allowsRequest()
170 …onst KURL& url, bool includeCredentials, const String& method, const HTTPHeaderMap& requestHeaders) in canSkipPreflight() argument
177 if (cacheIt->second->allowsRequest(includeCredentials, method, requestHeaders)) in canSkipPreflight()
DCrossOriginPreflightResultCache.h53 …sRequest(bool includeCredentials, const String& method, const HTTPHeaderMap& requestHeaders) const;
73 …, const KURL&, bool includeCredentials, const String& method, const HTTPHeaderMap& requestHeaders);
/external/oauth/core/src/main/java/net/oauth/client/
DURLConnectionResponse.java43 public URLConnectionResponse(HttpMessage request, String requestHeaders, in URLConnectionResponse() argument
46 this.requestHeaders = requestHeaders; in URLConnectionResponse()
53 private final String requestHeaders; field in URLConnectionResponse
99 StringBuilder request = new StringBuilder(requestHeaders); in dump()
/external/okhttp/src/main/java/com/squareup/okhttp/
DConnection.java296 RawHeaders requestHeaders = tunnelRequest.getRequestHeaders(); in makeTunnel() local
298 out.write(requestHeaders.toBytes()); in makeTunnel()
305 requestHeaders = new RawHeaders(requestHeaders); in makeTunnel()
308 HttpAuthenticator.processAuthHeader(HTTP_PROXY_AUTH, responseHeaders, requestHeaders, in makeTunnel()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
DSpdyServer.java83 List<String> requestHeaders = stream.getRequestHeaders(); in receive() local
85 for (int i = 0; i < requestHeaders.size(); i += 2) { in receive()
86 String s = requestHeaders.get(i); in receive()
88 path = requestHeaders.get(i + 1); in receive()
DHttpOverSpdyTest.java225 Map<String, List<String>> requestHeaders = Collections.emptyMap(); in acceptAndTransmitCookies() local
227 cookieManager.get(url.toURI(), requestHeaders)); in acceptAndTransmitCookies() local
/external/webkit/Source/WebCore/inspector/front-end/
DNetworkManager.js82 resource.requestHeaders = request.headers;
97 if (response.requestHeaders)
98 resource.requestHeaders = response.requestHeaders;
261 resource.requestHeaders = request.headers;
DResource.js407 get requestHeaders() getter in WebInspector.Resource
412 set requestHeaders(x) setter in WebInspector.Resource
452 for (var key in this.requestHeaders)
453 this._sortedRequestHeaders.push({header: key, value: this.requestHeaders[key]});
461 return this._headerValue(this.requestHeaders, headerName);
DHAREntry.js62 headers: this._buildHeaders(this._resource.requestHeaders),
/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
DSpdyStream.java83 private final List<String> requestHeaders; field in SpdyStream
99 List<String> requestHeaders, Settings settings) { in SpdyStream() argument
101 if (requestHeaders == null) throw new NullPointerException("requestHeaders == null"); in SpdyStream()
106 this.requestHeaders = requestHeaders; in SpdyStream()
152 return requestHeaders; in getRequestHeaders()
DSpdyConnection.java164 public SpdyStream newStream(List<String> requestHeaders, boolean out, boolean in) in newStream() argument
180 stream = new SpdyStream(streamId, this, flags, priority, slot, requestHeaders, settings); in newStream()
187 spdyWriter.synStream(flags, streamId, associatedStreamId, priority, slot, requestHeaders); in newStream()
/external/webkit/Source/WebCore/platform/network/cf/
DResourceRequestCFNet.cpp92 …c inline void setHeaderFields(CFMutableURLRequestRef request, const HTTPHeaderMap& requestHeaders) in setHeaderFields() argument
104 HTTPHeaderMap::const_iterator end = requestHeaders.end(); in setHeaderFields()
105 for (HTTPHeaderMap::const_iterator it = requestHeaders.begin(); it != end; ++it) { in setHeaderFields()
DResourceHandleCFNet.cpp286 void addHeadersFromHashMap(CFMutableURLRequestRef request, const HTTPHeaderMap& requestHeaders) in addHeadersFromHashMap() argument
288 if (!requestHeaders.size()) in addHeadersFromHashMap()
291 HTTPHeaderMap::const_iterator end = requestHeaders.end(); in addHeadersFromHashMap()
292 for (HTTPHeaderMap::const_iterator it = requestHeaders.begin(); it != end; ++it) { in addHeadersFromHashMap()
/external/webkit/Source/WebCore/platform/network/
DResourceLoadInfo.h42 HTTPHeaderMap requestHeaders; member
/external/webkit/Source/WebKit/android/WebCoreSupport/
DWebResourceRequest.h59 const net::HttpRequestHeaders& requestHeaders() const in requestHeaders() function
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DCookieHandlerTest.java53 public Map get(URI uri, Map requestHeaders) throws IOException { in get() argument
/external/webkit/Source/WebKit/chromium/src/
DWebHTTPLoadInfo.cpp114 addHeader(&m_private->requestHeaders, name, value); in addRequestHeader()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
DURLEncodingTest.java133 Map<String, List<String>> requestHeaders) throws IOException { in backdoorUrlToUri()
DURLConnectionTest.java124 @Test public void requestHeaders() throws IOException, InterruptedException { in requestHeaders() method in URLConnectionTest
133 Map<String, List<String>> requestHeaders = urlConnection.getRequestProperties(); in requestHeaders() local
134 assertEquals(newSet("e", "f"), new HashSet<String>(requestHeaders.get("D"))); in requestHeaders()
135 assertEquals(newSet("e", "f"), new HashSet<String>(requestHeaders.get("d"))); in requestHeaders()
137 requestHeaders.put("G", Arrays.asList("h")); in requestHeaders()
142 requestHeaders.get("D").add("i"); in requestHeaders()
2027 Map<String, List<String>> requestHeaders) throws IOException { in responseCacheReturnsNullOutputStream()

12