Home
last modified time | relevance | path

Searched refs:responseHeaders (Results 1 – 25 of 57) sorted by relevance

123

/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DResponseHeadersTest.cs74 var responseHeaders = await call.ResponseHeadersAsync; in ResponseHeadersAsync_UnaryCall()
76 Assert.AreEqual(headers.Count, responseHeaders.Count); in ResponseHeadersAsync_UnaryCall()
77 Assert.AreEqual("ascii-header", responseHeaders[0].Key); in ResponseHeadersAsync_UnaryCall()
78 Assert.AreEqual("abcdefg", responseHeaders[0].Value); in ResponseHeadersAsync_UnaryCall()
94 var responseHeaders = await call.ResponseHeadersAsync; in ResponseHeadersAsync_ClientStreamingCall()
96 Assert.AreEqual("ascii-header", responseHeaders[0].Key); in ResponseHeadersAsync_ClientStreamingCall()
110 var responseHeaders = await call.ResponseHeadersAsync; in ResponseHeadersAsync_ServerStreamingCall()
112 Assert.AreEqual("ascii-header", responseHeaders[0].Key); in ResponseHeadersAsync_ServerStreamingCall()
129 var responseHeaders = await call.ResponseHeadersAsync; in ResponseHeadersAsync_DuplexStreamingCall()
134 Assert.AreEqual("ascii-header", responseHeaders[0].Key); in ResponseHeadersAsync_DuplexStreamingCall()
/external/grpc-grpc-java/netty/src/jmh/java/io/grpc/netty/
DInboundHeadersBenchmark.java45 private static AsciiString[] responseHeaders; field in InboundHeadersBenchmark
77 responseHeaders = new AsciiString[4]; in setupResponseHeaders()
79 responseHeaders[i++] = of(":status"); in setupResponseHeaders()
80 responseHeaders[i++] = of("200"); in setupResponseHeaders()
81 responseHeaders[i++] = of("grpc-encoding"); in setupResponseHeaders()
82 responseHeaders[i] = of("gzip"); in setupResponseHeaders()
145 bh.consume(headers.add(responseHeaders[0], responseHeaders[1])); in clientHandler()
146 bh.consume(headers.add(responseHeaders[2], responseHeaders[3])); in clientHandler()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DFramedStream.java62 private List<Header> responseHeaders; field in FramedStream
112 && responseHeaders != null) { in isOpen()
139 while (responseHeaders == null && errorCode == null) { in getResponseHeaders()
145 if (responseHeaders != null) return responseHeaders; in getResponseHeaders()
163 public void reply(List<Header> responseHeaders, boolean out) throws IOException { in reply() argument
167 if (responseHeaders == null) { in reply()
170 if (this.responseHeaders != null) { in reply()
173 this.responseHeaders = responseHeaders; in reply()
179 connection.writeSynReply(id, outFinished, responseHeaders); in reply()
207 if (responseHeaders == null && !isLocallyInitiated()) { in getSink()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DOkHeaders.java159 public static boolean hasVaryAll(Headers responseHeaders) { in hasVaryAll() argument
160 return varyFields(responseHeaders).contains("*"); in hasVaryAll()
171 public static Set<String> varyFields(Headers responseHeaders) { in varyFields() argument
173 for (int i = 0, size = responseHeaders.size(); i < size; i++) { in varyFields()
174 if (!"Vary".equalsIgnoreCase(responseHeaders.name(i))) continue; in varyFields()
176 String value = responseHeaders.value(i); in varyFields()
196 Headers responseHeaders = response.headers(); in varyHeaders() local
197 return varyHeaders(requestHeaders, responseHeaders); in varyHeaders()
204 public static Headers varyHeaders(Headers requestHeaders, Headers responseHeaders) { in varyHeaders() argument
205 Set<String> varyFields = varyFields(responseHeaders); in varyHeaders()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DOkHeaders.java161 public static boolean hasVaryAll(Headers responseHeaders) { in hasVaryAll() argument
162 return varyFields(responseHeaders).contains("*"); in hasVaryAll()
173 public static Set<String> varyFields(Headers responseHeaders) { in varyFields() argument
175 for (int i = 0, size = responseHeaders.size(); i < size; i++) { in varyFields()
176 if (!"Vary".equalsIgnoreCase(responseHeaders.name(i))) continue; in varyFields()
178 String value = responseHeaders.value(i); in varyFields()
198 Headers responseHeaders = response.headers(); in varyHeaders() local
199 return varyHeaders(requestHeaders, responseHeaders); in varyHeaders()
206 public static Headers varyHeaders(Headers requestHeaders, Headers responseHeaders) { in varyHeaders() argument
207 Set<String> varyFields = varyFields(responseHeaders); in varyHeaders()
[all …]
/external/volley/src/main/java/com/android/volley/toolbox/
DBasicAsyncNetwork.java75 final List<Header> responseHeaders = httpResponse.getHeaders(); in onRequestSucceeded() local
81 request, requestDuration, responseHeaders)); in onRequestSucceeded()
99 responseHeaders, in onRequestSucceeded()
116 responseHeaders, in onRequestSucceeded()
182 List<Header> responseHeaders, in onResponseRead() argument
205 responseHeaders)); in onResponseRead()
214 List<Header> responseHeaders; field in BasicAsyncNetwork.ResponseParsingTask
223 List<Header> responseHeaders, in ResponseParsingTask() argument
231 this.responseHeaders = responseHeaders; in ResponseParsingTask()
252 responseHeaders, in run()
DNetworkUtility.java66 Request<?> request, long requestDuration, List<Header> responseHeaders) { in getNotModifiedNetworkResponse() argument
74 responseHeaders); in getNotModifiedNetworkResponse()
77 List<Header> combinedHeaders = HttpHeaderParser.combineHeaders(responseHeaders, entry); in getNotModifiedNetworkResponse()
165 List<Header> responseHeaders; in handleException() local
166 responseHeaders = httpResponse.getHeaders(); in handleException()
173 responseHeaders); in handleException()
DHttpHeaderParser.java141 entry.responseHeaders = headers; in parseCacheHeaders()
248 static List<Header> combineHeaders(List<Header> responseHeaders, Cache.Entry entry) { in combineHeaders() argument
252 if (!responseHeaders.isEmpty()) { in combineHeaders()
253 for (Header header : responseHeaders) { in combineHeaders()
260 List<Header> combinedHeaders = new ArrayList<>(responseHeaders); in combineHeaders()
271 if (!entry.responseHeaders.isEmpty()) { in combineHeaders()
272 for (Map.Entry<String, String> header : entry.responseHeaders.entrySet()) { in combineHeaders()
DBasicNetwork.java98 List<Header> responseHeaders = Collections.emptyList(); in performRequest() local
106 responseHeaders = httpResponse.getHeaders(); in performRequest()
111 request, requestDuration, responseHeaders); in performRequest()
139 responseHeaders); in performRequest()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DFramedStream.java64 private List<Header> responseHeaders; field in FramedStream
114 && responseHeaders != null) { in isOpen()
141 while (responseHeaders == null && errorCode == null) { in getResponseHeaders()
147 if (responseHeaders != null) return responseHeaders; in getResponseHeaders()
165 public void reply(List<Header> responseHeaders, boolean out) throws IOException { in reply() argument
169 if (responseHeaders == null) { in reply()
172 if (this.responseHeaders != null) { in reply()
175 this.responseHeaders = responseHeaders; in reply()
181 connection.writeSynReply(id, outFinished, responseHeaders); in reply()
209 if (responseHeaders == null && !isLocallyInitiated()) { in getSink()
[all …]
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
DHttpResponseException.java16 private List responseHeaders; field in HttpResponseException
28 public HttpResponseException(String detailMessage, int statusCode, List responseHeaders) { in HttpResponseException() argument
31 this.responseHeaders = responseHeaders; in HttpResponseException()
59 return responseHeaders; in getResponseHeaders()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DSynchronousGet.java35 Headers responseHeaders = response.headers(); in run() local
36 for (int i = 0; i < responseHeaders.size(); i++) { in run()
37 System.out.println(responseHeaders.name(i) + ": " + responseHeaders.value(i)); in run()
DAsynchronousGet.java41 Headers responseHeaders = response.headers(); in run()
42 for (int i = 0, size = responseHeaders.size(); i < size; i++) { in run()
43 System.out.println(responseHeaders.name(i) + ": " + responseHeaders.value(i)); in run()
DCustomTrust.java53 Headers responseHeaders = response.headers(); in run() local
54 for (int i = 0; i < responseHeaders.size(); i++) { in run()
55 System.out.println(responseHeaders.name(i) + ": " + responseHeaders.value(i)); in run()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DLoadEventInfo.java46 public final Map<String, List<String>> responseHeaders; field in LoadEventInfo
86 Map<String, List<String>> responseHeaders, in LoadEventInfo() argument
92 this.responseHeaders = responseHeaders; in LoadEventInfo()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/metadata/icy/
DIcyHeaders.java52 public static IcyHeaders parse(Map<String, List<String>> responseHeaders) { in parse() argument
61 List<String> headers = responseHeaders.get(RESPONSE_HEADER_BITRATE); in parse()
76 headers = responseHeaders.get(RESPONSE_HEADER_GENRE); in parse()
81 headers = responseHeaders.get(RESPONSE_HEADER_NAME); in parse()
86 headers = responseHeaders.get(RESPONSE_HEADER_URL); in parse()
91 headers = responseHeaders.get(RESPONSE_HEADER_PUB); in parse()
96 headers = responseHeaders.get(RESPONSE_HEADER_METADATA_INTERVAL); in parse()
/external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/header/
DHeaderServerInterceptor.java47 public void sendHeaders(Metadata responseHeaders) { in interceptCall()
48 responseHeaders.put(CUSTOM_HEADER_KEY, "customRespondValue"); in interceptCall()
49 super.sendHeaders(responseHeaders); in interceptCall()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/framed/
DFramedServer.java124 List<Header> responseHeaders = Arrays.asList( in send404() local
129 stream.reply(responseHeaders, true); in send404()
136 List<Header> responseHeaders = Arrays.asList( in serveDirectory() local
141 stream.reply(responseHeaders, true); in serveDirectory()
151 List<Header> responseHeaders = Arrays.asList( in serveFile() local
156 stream.reply(responseHeaders, true); in serveFile()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DAsyncCall.cs531 private void HandleReceivedResponseHeaders(bool success, Metadata responseHeaders) in HandleReceivedResponseHeaders() argument
534 responseHeadersTcs.SetResult(responseHeaders); in HandleReceivedResponseHeaders()
540 …se(bool success, ClientSideStatus receivedStatus, byte[] receivedMessage, Metadata responseHeaders) in HandleUnaryResponse() argument
574 responseHeadersTcs.SetResult(responseHeaders); in HandleUnaryResponse()
637 …nt(bool success, ClientSideStatus receivedStatus, byte[] receivedMessage, Metadata responseHeaders) in IUnaryResponseClientCallback.OnUnaryResponseClient() argument
639 HandleUnaryResponse(success, receivedStatus, receivedMessage, responseHeaders); in IUnaryResponseClientCallback.OnUnaryResponseClient()
651 … IReceivedResponseHeadersCallback.OnReceivedResponseHeaders(bool success, Metadata responseHeaders) in IReceivedResponseHeadersCallback.OnReceivedResponseHeaders() argument
653 HandleReceivedResponseHeaders(success, responseHeaders); in IReceivedResponseHeadersCallback.OnReceivedResponseHeaders()
DServerResponseStream.cs43 public Task WriteResponseHeadersAsync(Metadata responseHeaders) in WriteResponseHeadersAsync() argument
45 return call.SendInitialMetadataAsync(responseHeaders); in WriteResponseHeadersAsync()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java475 private final Headers responseHeaders; field in Entry
548 responseHeaders = responseHeadersBuilder.build(); in Entry()
574 this.responseHeaders = response.headers(); in Entry()
596 sink.writeDecimalLong(responseHeaders.size()); in writeTo()
598 for (int i = 0, size = responseHeaders.size(); i < size; i++) { in writeTo()
599 sink.writeUtf8(responseHeaders.name(i)); in writeTo()
601 sink.writeUtf8(responseHeaders.value(i)); in writeTo()
661 String contentType = responseHeaders.get("Content-Type"); in response()
662 String contentLength = responseHeaders.get("Content-Length"); in response()
673 .headers(responseHeaders) in response()
/external/downloader/src/main/java/com/google/android/downloader/
DErrorDetails.java125 int httpCode, Map<String, List<String>> responseHeaders) { in isRetryableHttpError() argument
133 return responseHeaders.containsKey(HttpHeaders.RETRY_AFTER); in isRetryableHttpError()
141 return responseHeaders.containsKey(HttpHeaders.RETRY_AFTER); in isRetryableHttpError()
DPlatformUrlEngine.java170 private final Map<String, List<String>> responseHeaders; field in PlatformUrlResponse
175 this.responseHeaders = urlConnection.getHeaderFields(); in PlatformUrlResponse()
192 return responseHeaders; in getResponseHeaders()
266 Map<String, List<String>> responseHeaders = httpUrlConnection.getHeaderFields();
272 httpResponseCode, responseHeaders, responseMessage));
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCache.java477 private final Headers responseHeaders; field in Entry
550 responseHeaders = responseHeadersBuilder.build(); in Entry()
576 this.responseHeaders = response.headers(); in Entry()
598 sink.writeDecimalLong(responseHeaders.size()); in writeTo()
600 for (int i = 0, size = responseHeaders.size(); i < size; i++) { in writeTo()
601 sink.writeUtf8(responseHeaders.name(i)); in writeTo()
603 sink.writeUtf8(responseHeaders.value(i)); in writeTo()
663 String contentType = responseHeaders.get("Content-Type"); in response()
664 String contentLength = responseHeaders.get("Content-Length"); in response()
675 .headers(responseHeaders) in response()
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DTestServiceImpl.java517 public void sendHeaders(Metadata responseHeaders) {
518 responseHeaders.merge(requestHeaders, keySet);
519 super.sendHeaders(responseHeaders);
545 public void sendHeaders(Metadata responseHeaders) {
546 responseHeaders.merge(requestHeaders, keySet);
547 super.sendHeaders(responseHeaders);
572 public void sendHeaders(Metadata responseHeaders) {
573 super.sendHeaders(responseHeaders);

123