Home
last modified time | relevance | path

Searched refs:httpclient (Results 1 – 25 of 41) sorted by relevance

12

/external/nanohttpd/nanolets/src/test/java/fi/iki/elonen/router/
DTestNanolets.java108 CloseableHttpClient httpclient = HttpClients.createDefault(); in doSomeBasicMethodTest() local
111 CloseableHttpResponse response = httpclient.execute(httpget); in doSomeBasicMethodTest()
119 response = httpclient.execute(httppost); in doSomeBasicMethodTest()
127 response = httpclient.execute(httpgput); in doSomeBasicMethodTest()
135 response = httpclient.execute(httpdelete); in doSomeBasicMethodTest()
145 CloseableHttpClient httpclient = HttpClients.createDefault(); in doNonRouterRequest() local
148 CloseableHttpResponse response = httpclient.execute(httpget); in doNonRouterRequest()
157 CloseableHttpClient httpclient = HttpClients.createDefault(); in doExceptionRequest() local
160 CloseableHttpResponse response = httpclient.execute(httpget); in doExceptionRequest()
169 CloseableHttpClient httpclient = HttpClients.createDefault(); in doDeletedRoute() local
[all …]
/external/nanohttpd/webserver/src/test/java/fi/iki/elonen/
DTestHttpServer.java92 CloseableHttpClient httpclient = HttpClients.createDefault(); in doTest404() local
94 CloseableHttpResponse response = httpclient.execute(httpget); in doTest404()
101 CloseableHttpClient httpclient = HttpClients.createDefault(); in doPlugin() local
103 CloseableHttpResponse response = httpclient.execute(httpget); in doPlugin()
109 response = httpclient.execute(httpget); in doPlugin()
117 CloseableHttpClient httpclient = HttpClients.createDefault(); in doSomeBasicTest() local
119 CloseableHttpResponse response = httpclient.execute(httpget); in doSomeBasicTest()
126 response = httpclient.execute(httpget); in doSomeBasicTest()
133 response = httpclient.execute(httpget); in doSomeBasicTest()
140 response = httpclient.execute(httpget); in doSomeBasicTest()
DTestCorsHttpServer.java97 CloseableHttpClient httpclient = HttpClients.createDefault(); in doTestOption() local
99 CloseableHttpResponse response = httpclient.execute(httpOption); in doTestOption()
108 CloseableHttpClient httpclient = HttpClients.createDefault(); in doSomeBasicTest() local
110 CloseableHttpResponse response = httpclient.execute(httpget); in doSomeBasicTest()
125 CloseableHttpClient httpclient = HttpClients.createDefault(); in testAccessControlAllowHeaderUsesDefaultsWithoutSystemProperty() local
127 CloseableHttpResponse response = httpclient.execute(httpOption); in testAccessControlAllowHeaderUsesDefaultsWithoutSystemProperty()
143 CloseableHttpClient httpclient = HttpClients.createDefault(); in testAccessControlAllowHeaderUsesSystemPropertyWhenSet() local
145 CloseableHttpResponse response = httpclient.execute(httpOption); in testAccessControlAllowHeaderUsesSystemPropertyWhenSet()
DTestCorsHttpServerWithSingleOrigin.java97 CloseableHttpClient httpclient = HttpClients.createDefault(); in doTestOption() local
99 CloseableHttpResponse response = httpclient.execute(httpOption); in doTestOption()
109 CloseableHttpClient httpclient = HttpClients.createDefault(); in doSomeBasicTest() local
111 CloseableHttpResponse response = httpclient.execute(httpget); in doSomeBasicTest()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DGZipIntegrationTest.java87 HttpResponse response = httpclient.execute(request); in contentEncodingShouldBeAddedToFixedLengthResponses()
99 HttpResponse response = httpclient.execute(request); in contentEncodingShouldBeAddedToChunkedResponses()
110 HttpResponse response = httpclient.execute(request); in shouldFindCorrectAcceptEncodingAmongMany()
121 HttpResponse response = httpclient.execute(request); in contentLengthShouldBeRemovedFromZippedResponses()
131 HttpResponse response = new DecompressingHttpClient(httpclient).execute(request); in fixedLengthContentIsEncodedProperly()
141 HttpResponse response = new DecompressingHttpClient(httpclient).execute(request); in chunkedContentIsEncodedProperly()
149 HttpResponse response = httpclient.execute(request); in noGzipWithoutAcceptEncoding()
161 HttpResponse response = httpclient.execute(request); in contentShouldNotBeGzippedIfContentLengthIsAddedManually()
DCookieIntegrationTest.java90 this.httpclient.execute(httpget, responseHandler); in testCookieSentBackToClient()
92 CookieStore cookies = this.httpclient.getCookieStore(); in testCookieSentBackToClient()
102 this.httpclient.execute(httpget, responseHandler); in testNoCookies()
104 CookieStore cookies = this.httpclient.getCookieStore(); in testNoCookies()
115 this.httpclient.getCookieStore().addCookie(clientCookie); in testServerReceivesCookiesSentFromClient()
118 this.httpclient.execute(httpget, responseHandler); in testServerReceivesCookiesSentFromClient()
DGetAndPostIntegrationTest.java107 String responseBody = this.httpclient.execute(httpget, responseHandler); in testGetRequestWithParameters()
123 String responseBody = this.httpclient.execute(httppost, responseHandler); in testPostRequestWithFormEncodedParameters()
139 String responseBody = this.httpclient.execute(httppost, responseHandler); in testPostRequestWithMultipartEncodedParameters()
150 String responseBody = this.httpclient.execute(httppost, responseHandler); in testPostWithNoParameters()
161 String responseBody = this.httpclient.execute(httpget, responseHandler); in testSimpleGetRequest()
181 HttpResponse response = this.httpclient.execute(httppost); in testPostRequestWithMultipartExtremEncodedParameters()
DIntegrationTestBase.java49 protected DefaultHttpClient httpclient; field in IntegrationTestBase
58 this.httpclient = new DefaultHttpClient(); in setUp()
68 this.httpclient.getConnectionManager().shutdown(); in tearDown()
/external/nanohttpd/fileupload/src/test/java/fi/iki/elonen/
DTestNanoFileUpLoad.java169 CloseableHttpClient httpclient = HttpClients.createDefault(); in testNormalRequest() local
171 CloseableHttpResponse response = httpclient.execute(httphead); in testNormalRequest()
178 CloseableHttpClient httpclient = HttpClients.createDefault(); in testPostWithMultipartFormUpload1() local
182 executeUpload(httpclient, textFileName, post); in testPostWithMultipartFormUpload1()
189 CloseableHttpClient httpclient = HttpClients.createDefault(); in testPostWithMultipartFormUpload2() local
193 executeUpload(httpclient, textFileName, post); in testPostWithMultipartFormUpload2()
200 CloseableHttpClient httpclient = HttpClients.createDefault(); in testPostWithMultipartFormUpload3() local
204 executeUpload(httpclient, textFileName, post); in testPostWithMultipartFormUpload3()
209 …private void executeUpload(CloseableHttpClient httpclient, String textFileName, HttpPost post) thr… in executeUpload() argument
220 HttpResponse response = httpclient.execute(post); in executeUpload()
/external/robolectric-shadows/shadows/httpclient/
DAndroid.mk16 robolectric-httpclient-4.0.3 \
31 …ACFLAGS := -Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric.shadows.httpclient
59 robolectric-httpclient-4.0.3 \
95 robolectric-httpclient-4.0.3 \
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DSSLServerSocketFactoryTest.java56 DefaultHttpClient httpclient = new DefaultHttpClient(); in testSSLConnection() local
58 HttpResponse response = httpclient.execute(httphead); in testSSLConnection()
DHttpSSLServerTest.java55 DefaultHttpClient httpclient = new DefaultHttpClient(); in testSSLConnection() local
57 HttpResponse response = httpclient.execute(httphead); in testSSLConnection()
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DShadowDefaultRequestDirector.java1 package org.robolectric.shadows.httpclient;
54 org.robolectric.shadows.httpclient.DefaultRequestDirector redirector;
86 redirector = new org.robolectric.shadows.httpclient.DefaultRequestDirector( in __constructor__()
Dpackage-info.java9 package org.robolectric.shadows.httpclient;
DRequestMatcher.java1 package org.robolectric.shadows.httpclient;
DHttpResponseGenerator.java1 package org.robolectric.shadows.httpclient;
DStatusLineStub.java1 package org.robolectric.shadows.httpclient;
DHttpRedirect.java29 package org.robolectric.shadows.httpclient;
DHttpRequestInfo.java1 package org.robolectric.shadows.httpclient;
DHttpEntityStub.java1 package org.robolectric.shadows.httpclient;
/external/robolectric-shadows/
DAndroid.mk90 …robolectric-httpclient-4.0.3:../../../prebuilts/tools/common/m2/repository/org/apache/httpcomponen…
/external/nanohttpd/core/
Dbuild.gradle15 testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.2.5'
/external/robolectric-shadows/src/main/resources/META-INF/services/
Dorg.robolectric.internal.ShadowProvider4 org.robolectric.shadows.httpclient.Shadows
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/
DAndroidHttpClientTest.java1 package org.robolectric.shadows.httpclient;
DFakeHttpTest.java1 package org.robolectric.shadows.httpclient;

12