Home
last modified time | relevance | path

Searched refs:requestMethod (Results 1 – 21 of 21) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java212 String requestMethod = response.request().method(); in put() local
222 if (!requestMethod.equals("GET")) { in put()
471 private final String requestMethod; field in Entry
531 requestMethod = source.readUtf8LineStrict(); in Entry()
570 this.requestMethod = response.request().method(); in Entry()
583 sink.writeUtf8(requestMethod); in writeTo()
656 && requestMethod.equals(request.method()) in matches()
665 .method(requestMethod, null) in response()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCache.java214 String requestMethod = response.request().method(); in put() local
224 if (!requestMethod.equals("GET")) { in put()
473 private final String requestMethod; field in Entry
533 requestMethod = source.readUtf8LineStrict(); in Entry()
572 this.requestMethod = response.request().method(); in Entry()
585 sink.writeUtf8(requestMethod); in writeTo()
658 && requestMethod.equals(request.method()) in matches()
667 .method(requestMethod, null) in response()
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/
DAndroidShimResponseCache.java58 @Override public CacheResponse get(URI uri, String requestMethod, in get() argument
60 Request okRequest = JavaApiConverter.createOkRequest(uri, requestMethod, requestHeaders); in get()
/external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/
DAndroidShimResponseCache.java60 @Override public CacheResponse get(URI uri, String requestMethod, in get() argument
62 Request okRequest = JavaApiConverter.createOkRequest(uri, requestMethod, requestHeaders); in get()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
DHttpResponseCache.java96 @Override public CacheResponse get(URI uri, String requestMethod, in get() argument
98 return shimResponseCache.get(uri, requestMethod, requestHeaders); in get()
DHttpResponseCacheTest.java98 public CacheResponse get(URI uri, String requestMethod, in getInstalledWithWrongTypeInstalled()
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
DServiceConnectionSE.java112 public void setRequestMethod(String requestMethod) throws IOException { in setRequestMethod() argument
113 connection.setRequestMethod(requestMethod); in setRequestMethod()
DHttpsServiceConnectionSE.java121 public void setRequestMethod(String requestMethod) throws IOException { in setRequestMethod() argument
122 connection.setRequestMethod(requestMethod); in setRequestMethod()
/external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/internal/huc/
DJavaApiConverter.java86 String requestMethod = httpUrlConnection.getRequestMethod(); in createOkResponseForCachePut() local
87 RequestBody placeholderBody = HttpMethod.requiresRequestBody(requestMethod) in createOkResponseForCachePut()
93 .method(requestMethod, placeholderBody) in createOkResponseForCachePut()
270 URI uri, String requestMethod, Map<String, List<String>> requestHeaders) { in createOkRequest() argument
272 RequestBody placeholderBody = HttpMethod.requiresRequestBody(requestMethod) in createOkRequest()
278 .method(requestMethod, placeholderBody); in createOkRequest()
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
DJavaApiConverter.java84 String requestMethod = httpUrlConnection.getRequestMethod(); in createOkResponseForCachePut() local
85 RequestBody placeholderBody = HttpMethod.requiresRequestBody(requestMethod) in createOkResponseForCachePut()
91 .method(requestMethod, placeholderBody) in createOkResponseForCachePut()
268 URI uri, String requestMethod, Map<String, List<String>> requestHeaders) { in createOkRequest() argument
270 RequestBody placeholderBody = HttpMethod.requiresRequestBody(requestMethod) in createOkRequest()
276 .method(requestMethod, placeholderBody); in createOkRequest()
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/
DAndroidResponseCacheAdapter.java89 public @Nullable CacheResponse get(@NonNull URI uri, @NonNull String requestMethod, in get() argument
91 Request okRequest = JavaApiConverter.createOkRequest(uri, requestMethod, requestHeaders); in get()
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/
DAndroidResponseCacheAdapter.java91 public @Nullable CacheResponse get(@NonNull URI uri, @NonNull String requestMethod, in get() argument
93 Request okRequest = JavaApiConverter.createOkRequest(uri, requestMethod, requestHeaders); in get()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/
DAbstractResponseCache.java30 @Override public CacheResponse get(URI uri, String requestMethod, in get() argument
/external/volley/src/main/java/com/android/volley/toolbox/
DHurlStack.java140 private static boolean hasResponseBody(int requestMethod, int responseCode) { in hasResponseBody() argument
141 return requestMethod != Request.Method.HEAD in hasResponseBody()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java696 private void testRequestMethod(String requestMethod, boolean expectCached) throws Exception { in testRequestMethod() argument
708 request1.setRequestMethod(requestMethod); in testRequestMethod()
709 addRequestBodyIfNecessary(requestMethod, request1); in testRequestMethod()
722 private void addRequestBodyIfNecessary(String requestMethod, HttpURLConnection connection) in addRequestBodyIfNecessary() argument
724 if (requestMethod.equals("POST") || requestMethod.equals("PUT")) { in addRequestBodyIfNecessary()
744 private void testMethodInvalidates(String requestMethod) throws Exception { in testMethodInvalidates() argument
761 invalidateConnection.setRequestMethod(requestMethod); in testMethodInvalidates()
1923 public CacheResponse get(URI uri, String requestMethod,
1967 @Override public CacheResponse get(URI uri, String requestMethod,
1969 final CacheResponse response = delegate.get(uri, requestMethod, requestHeaders);
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowHttpResponseCache.java90 URI uri, String requestMethod, Map<String, List<String>> requestHeaders) { in get() argument
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java1296 private Method requestMethod; field in NanoHTTPD.Response
1356 return this.requestMethod;
1423 if (this.requestMethod != Method.HEAD && this.chunkedTransfer) {
1439 if (this.requestMethod != Method.HEAD && this.chunkedTransfer) {
1515 public void setRequestMethod(Method requestMethod) {
1516 this.requestMethod = requestMethod;
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java623 private void testRequestMethod(String requestMethod, boolean expectCached) throws Exception { in testRequestMethod() argument
633 request1.setRequestMethod(requestMethod); in testRequestMethod()
634 addRequestBodyIfNecessary(requestMethod, request1); in testRequestMethod()
659 private void testMethodInvalidates(String requestMethod) throws Exception { in testMethodInvalidates() argument
673 invalidate.setRequestMethod(requestMethod); in testMethodInvalidates()
674 addRequestBodyIfNecessary(requestMethod, invalidate); in testMethodInvalidates()
1673 private void addRequestBodyIfNecessary(String requestMethod, HttpURLConnection invalidate) in addRequestBodyIfNecessary() argument
1675 if (requestMethod.equals("POST") || requestMethod.equals("PUT")) { in addRequestBodyIfNecessary()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheTest.java733 private void testRequestMethod(String requestMethod, boolean expectCached) throws Exception { in testRequestMethod() argument
746 .method(requestMethod, requestBodyOrNull(requestMethod)) in testRequestMethod()
761 private RequestBody requestBodyOrNull(String requestMethod) { in requestBodyOrNull() argument
762 return (requestMethod.equals("POST") || requestMethod.equals("PUT")) in requestBodyOrNull()
779 private void testMethodInvalidates(String requestMethod) throws Exception { in testMethodInvalidates() argument
797 .method(requestMethod, requestBodyOrNull(requestMethod)) in testMethodInvalidates()
DOkHttpClientTest.java142 @Override public CacheResponse get(URI uri, String requestMethod, in copyWithDefaultsDoesNotHonorGlobalResponseCache()
DURLConnectionTest.java1562 private void assertValidRequestMethod(String requestMethod) throws Exception {
1564 connection.setRequestMethod(requestMethod);
1565 assertEquals(requestMethod, connection.getRequestMethod());
1576 private void assertInvalidRequestMethod(String requestMethod) throws Exception {
1579 connection.setRequestMethod(requestMethod);