Home
last modified time | relevance | path

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

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java211 String requestMethod = response.request().method(); in put() local
221 if (!requestMethod.equals("GET")) { in put()
470 private final String requestMethod; field in Entry
530 requestMethod = source.readUtf8LineStrict(); in Entry()
569 this.requestMethod = response.request().method(); in Entry()
582 sink.writeUtf8(requestMethod); in writeTo()
655 && requestMethod.equals(request.method()) in matches()
664 .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/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
DHttpsServiceConnectionSE.java96 public void setRequestMethod(String requestMethod) throws IOException { in setRequestMethod() argument
97 connection.setRequestMethod(requestMethod); in setRequestMethod()
DServiceConnectionSE.java104 public void setRequestMethod(String requestMethod) throws IOException { in setRequestMethod() argument
105 connection.setRequestMethod(requestMethod); in setRequestMethod()
/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/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/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.java138 private static boolean hasResponseBody(int requestMethod, int responseCode) { in hasResponseBody() argument
139 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/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.java1550 private void assertValidRequestMethod(String requestMethod) throws Exception {
1552 connection.setRequestMethod(requestMethod);
1553 assertEquals(requestMethod, connection.getRequestMethod());
1564 private void assertInvalidRequestMethod(String requestMethod) throws Exception {
1567 connection.setRequestMethod(requestMethod);