HomeSort by relevance Sort by last modified time
    Searched refs:requestMethod (Results 1 - 25 of 48) sorted by null

1 2

  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/
AbstractResponseCache.java 30 @Override public CacheResponse get(URI uri, String requestMethod,
  /frameworks/base/tests/CoreTests/android/core/
TestWebServer.java 335 private int requestMethod;
506 requestMethod = UNKNOWN_METHOD;
514 requestMethod = GET_METHOD;
522 requestMethod = HEAD_METHOD;
530 requestMethod = POST_METHOD;
535 requestMethod = UNKNOWN_METHOD;
540 if (requestMethod > UNKNOWN_METHOD) {
546 requestMethod = UNKNOWN_METHOD;
575 requestMethod = UNKNOWN_METHOD;
654 if (requestMethod != UNKNOWN_METHOD)
    [all...]
  /libcore/support/src/test/java/tests/support/
Support_TestWebServer.java 289 private int requestMethod;
408 requestMethod = UNKNOWN_METHOD;
416 requestMethod = GET_METHOD;
424 requestMethod = HEAD_METHOD;
432 requestMethod = POST_METHOD;
437 requestMethod = UNKNOWN_METHOD;
442 if (requestMethod > UNKNOWN_METHOD) {
448 requestMethod = UNKNOWN_METHOD;
475 requestMethod = UNKNOWN_METHOD;
554 if (requestMethod != UNKNOWN_METHOD)
    [all...]
  /external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
HttpsServiceConnectionSE.java 96 public void setRequestMethod(String requestMethod) throws IOException {
97 connection.setRequestMethod(requestMethod);
ServiceConnectionSE.java 104 public void setRequestMethod(String requestMethod) throws IOException {
105 connection.setRequestMethod(requestMethod);
  /external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/
AndroidShimResponseCache.java 58 @Override public CacheResponse get(URI uri, String requestMethod,
60 Request okRequest = JavaApiConverter.createOkRequest(uri, requestMethod, requestHeaders);
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
HttpResponseCache.java 96 @Override public CacheResponse get(URI uri, String requestMethod,
98 return shimResponseCache.get(uri, requestMethod, requestHeaders);
HttpResponseCacheTest.java 98 public CacheResponse get(URI uri, String requestMethod,
  /frameworks/base/core/java/android/net/http/
HttpResponseCache.java 204 @Override public CacheResponse get(URI uri, String requestMethod,
206 return delegate.get(uri, requestMethod, requestHeaders);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Cache.java 211 String requestMethod = response.request().method();
221 if (!requestMethod.equals("GET")) {
470 private final String requestMethod;
530 requestMethod = source.readUtf8LineStrict();
569 this.requestMethod = response.request().method();
582 sink.writeUtf8(requestMethod);
655 && requestMethod.equals(request.method())
664 .method(requestMethod, null)
  /external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
JavaApiConverter.java 84 String requestMethod = httpUrlConnection.getRequestMethod();
85 RequestBody placeholderBody = HttpMethod.requiresRequestBody(requestMethod)
91 .method(requestMethod, placeholderBody)
268 URI uri, String requestMethod, Map<String, List<String>> requestHeaders) {
270 RequestBody placeholderBody = HttpMethod.requiresRequestBody(requestMethod)
276 .method(requestMethod, placeholderBody);
  /frameworks/volley/src/main/java/com/android/volley/toolbox/
HurlStack.java 134 * @param requestMethod request method
138 private static boolean hasResponseBody(int requestMethod, int responseCode) {
139 return requestMethod != Request.Method.HEAD
  /cts/tests/tests/net/src/android/net/http/cts/
HttpResponseCacheTest.java 88 @Override public CacheResponse get(URI uri, String requestMethod,
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
ResponseCacheTest.java 696 private void testRequestMethod(String requestMethod, boolean expectCached) throws Exception {
708 request1.setRequestMethod(requestMethod);
709 addRequestBodyIfNecessary(requestMethod, request1);
722 private void addRequestBodyIfNecessary(String requestMethod, HttpURLConnection connection)
724 if (requestMethod.equals("POST") || requestMethod.equals("PUT")) {
744 private void testMethodInvalidates(String requestMethod) throws Exception {
761 invalidateConnection.setRequestMethod(requestMethod);
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
OkHttpClientTest.java 142 @Override public CacheResponse get(URI uri, String requestMethod,
CacheTest.java 713 private void testRequestMethod(String requestMethod, boolean expectCached) throws Exception {
726 .method(requestMethod, requestBodyOrNull(requestMethod))
741 private RequestBody requestBodyOrNull(String requestMethod) {
742 return (requestMethod.equals("POST") || requestMethod.equals("PUT"))
759 private void testMethodInvalidates(String requestMethod) throws Exception {
777 .method(requestMethod, requestBodyOrNull(requestMethod))
    [all...]
URLConnectionTest.java     [all...]
  /external/nanohttpd/core/src/main/java/fi/iki/elonen/
NanoHTTPD.java     [all...]
  /prebuilts/go/darwin-x86/src/net/http/
transfer.go 132 func noBodyExpected(requestMethod string) bool {
133 return requestMethod == "HEAD"
263 RequestMethod string
306 t := &transferReader{RequestMethod: "GET"}
319 t.RequestMethod = rr.Request.Method
323 t.RequestMethod = rr.Method
340 t.TransferEncoding, err = fixTransferEncoding(isResponse, t.RequestMethod, t.Header)
345 realLength, err := fixLength(isResponse, t.StatusCode, t.RequestMethod, t.Header, t.TransferEncoding)
349 if isResponse && t.RequestMethod == "HEAD" {
382 if noBodyExpected(t.RequestMethod) {
    [all...]
  /prebuilts/go/linux-x86/src/net/http/
transfer.go 132 func noBodyExpected(requestMethod string) bool {
133 return requestMethod == "HEAD"
263 RequestMethod string
306 t := &transferReader{RequestMethod: "GET"}
319 t.RequestMethod = rr.Request.Method
323 t.RequestMethod = rr.Method
340 t.TransferEncoding, err = fixTransferEncoding(isResponse, t.RequestMethod, t.Header)
345 realLength, err := fixLength(isResponse, t.StatusCode, t.RequestMethod, t.Header, t.TransferEncoding)
349 if isResponse && t.RequestMethod == "HEAD" {
382 if noBodyExpected(t.RequestMethod) {
    [all...]
  /external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
UrlConnectionCacheTest.java 623 private void testRequestMethod(String requestMethod, boolean expectCached) throws Exception {
633 request1.setRequestMethod(requestMethod);
634 addRequestBodyIfNecessary(requestMethod, request1);
659 private void testMethodInvalidates(String requestMethod) throws Exception {
673 invalidate.setRequestMethod(requestMethod);
674 addRequestBodyIfNecessary(requestMethod, invalidate);
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java     [all...]
  /prebuilts/tools/common/m2/repository/com/google/http-client/google-http-client/1.19.0/
google-http-client-1.19.0.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp/2.5.0/
okhttp-2.5.0.jar 
  /prebuilts/tools/common/google-api-java-client/1.20.0/
google-api-java-client-min-repackaged-1.20.0.jar 

Completed in 1901 milliseconds

1 2