Home
last modified time | relevance | path

Searched refs:HttpHeaderParser (Results 1 – 13 of 13) sorted by relevance

/external/volley/src/test/java/com/android/volley/toolbox/
DHttpHeaderParserTest.java59 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_noHeaders()
72 assertNull(HttpHeaderParser.parseCacheHeaders(response)); in parseCacheHeaders_nullHeaders()
79 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_headersSet()
91 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_etag()
104 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_normalExpire()
120 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_expiresInPast()
138 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_serverRelative()
151 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_cacheControlOverridesExpires()
170 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in testParseCacheHeaders_staleWhileRevalidate()
185 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_cacheControlNoCache()
[all …]
DHttpStackConformanceTest.java169 expectedHeaders.put(HttpHeaderParser.HEADER_CONTENT_TYPE, "BodyContentType"); in headerPrecedence()
176 requestHeaders.put(HttpHeaderParser.HEADER_CONTENT_TYPE, "RequestContentType"); in headerPrecedence()
177 expectedHeaders.put(HttpHeaderParser.HEADER_CONTENT_TYPE, "RequestContentType"); in headerPrecedence()
183 requestHeaders.remove(HttpHeaderParser.HEADER_CONTENT_TYPE); in headerPrecedence()
/external/volley/src/main/java/com/android/volley/toolbox/
DJsonArrayRequest.java74 HttpHeaderParser.parseCharset(response.headers, PROTOCOL_CHARSET)); in parseNetworkResponse()
76 new JSONArray(jsonString), HttpHeaderParser.parseCacheHeaders(response)); in parseNetworkResponse()
DStringRequest.java91 parsed = new String(response.data, HttpHeaderParser.parseCharset(response.headers)); in parseNetworkResponse()
98 return Response.success(parsed, HttpHeaderParser.parseCacheHeaders(response)); in parseNetworkResponse()
DJsonObjectRequest.java84 HttpHeaderParser.parseCharset(response.headers, PROTOCOL_CHARSET)); in parseNetworkResponse()
86 new JSONObject(jsonString), HttpHeaderParser.parseCacheHeaders(response)); in parseNetworkResponse()
DHurlStack.java296 if (!connection.getRequestProperties().containsKey(HttpHeaderParser.HEADER_CONTENT_TYPE)) { in addBody()
298 HttpHeaderParser.HEADER_CONTENT_TYPE, request.getBodyContentType()); in addBody()
DHttpHeaderParser.java41 public class HttpHeaderParser { class
296 "If-Modified-Since", HttpHeaderParser.formatEpochAsRfc1123(entry.lastModified)); in getCacheHeaders()
DBasicNetwork.java102 HttpHeaderParser.getCacheHeaders(request.getCacheEntry()); in performRequest()
DNetworkUtility.java77 List<Header> combinedHeaders = HttpHeaderParser.combineHeaders(responseHeaders, entry); in getNotModifiedNetworkResponse()
DImageRequest.java238 return Response.success(bitmap, HttpHeaderParser.parseCacheHeaders(response)); in doParse()
DBasicAsyncNetwork.java147 HttpHeaderParser.getCacheHeaders(request.getCacheEntry()); in performRequest()
DDiskBasedCache.java480 return HttpHeaderParser.toAllHeaderList(entry.responseHeaders); in getAllResponseHeaders()
515 e.responseHeaders = HttpHeaderParser.toHeaderMap(allResponseHeaders); in toCacheEntry()
/external/volley/src/main/java/com/android/volley/cronet/
DCronetHttpStack.java31 import com.android.volley.toolbox.HttpHeaderParser;
614 if (body != null && !mHeaders.containsKey(HttpHeaderParser.HEADER_CONTENT_TYPE)) { in setBody()
616 mHeaders.put(HttpHeaderParser.HEADER_CONTENT_TYPE, contentType); in setBody()