Questions tagged [asynchttpclient]

Asynchronous HTTP client library for Java

See the GitHub repo for more information. In essence:

AsyncHttpClient allows Java applications to easily execute HTTP requests and asynchronously process the HTTP responses. Feature-packed, wicked fast, and actively maintained.

323 questions
4
votes
0 answers

Android SNI Issue on Devices below Android 7

I am trying to send a HTTP POST request (with images, but that should not matter) to a https-secured server using an AsyncHttpClient. On Android 7+ everything seems to be working fine, the request finishes without errors. However, on Android 5 and…
munchybit
  • 41
  • 3
4
votes
1 answer

Play Framework handle request timeout

How can I handle timeout exception in play ws client? When I specify RequestTimeout and process stream, CompletionStage finishes successfully even though there are exception. See below for an example. Code (taken from here): // Make the request,…
4
votes
2 answers

Disable hostname verification in io.netty.handler.ssl.Sslcontext

Is there a way to disable hostname verification for io.netty.handler.ssl.Sslcontext? I have this code: sslContext = SslContextBuilder .forClient() .sslProvider(SslProvider.JDK) …
Ana Franco
  • 1,611
  • 3
  • 24
  • 43
4
votes
2 answers

slf4j java.lang.LinkageError loader constraint violation

For the project purpose, I have to stick on the Java 1.6 for development, I have used async client jar file and incorporate it into my project to achieve the async function and developed and exported a JAR using java 1.6. this jar included into…
Munees Majid
  • 747
  • 2
  • 8
  • 22
4
votes
2 answers

Ning: Connect to websocket and wait for response

Using Ning to create and connect to Websocket, following is my configuration , NettyAsyncHttpProviderConfig config = new NettyAsyncHttpProviderConfig(); config.addProperty(NettyAsyncHttpProviderConfig.USE_BLOCKING_IO, "true"); …
user1609085
  • 855
  • 3
  • 17
  • 33
4
votes
1 answer

Multiple AsyncHttpClient get requests to populate one activity

I have a "GameActivity" and in order to populate the layout I have to make multiple calls to a remote API and wondering the best way to accomplish this using the AsyncHttpClient package http://loopj.com/android-async-http/. My current set-up for a…
4
votes
0 answers

Logging using ning's asyncronous http client library

How do we setup logging using Ning's Asynchronous HTTP client ? There are no pointers to it in the documentation except the fact that it is dependent on Log4J. My project uses log4j and below shows the content of our log4j.properties…
A Null Pointer
  • 2,261
  • 3
  • 26
  • 28
4
votes
4 answers

Decode a streaming GZIP response in Scala Dispatch?

Receiving a Gzipped response from an API, but Dispatch 0.9.5 doesn't appear to have any methods to decode the response. Any ideas? Here's my current implementation, the println only prints out string representations of bytes. Http( …
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
4
votes
1 answer

ning asynch http client how to accept any certificates

I see on this page how to do https http://sonatype.github.com/async-http-client/ssl.html but what if I just want to ignore and accept any certificate as in this environment I don't care about man in the middle right now since it is in an isolated…
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
4
votes
2 answers

HTTP requests with HttpClient too slow?

i'm trying to coding an android app that send some post values to a php file hosted at a dedicate server and store the array resoult the code is this HttpPost httppost; DefaultHttpClient httpclient; httppost = new…
Colas
  • 157
  • 1
  • 2
  • 12
3
votes
1 answer

How can I send a JSON body with AsyncHttpClient?

I'm using AsyncHttpClient library to make HTTP requests from a very basic Android app. For now, I just need to make a POST request with a JSON body (and that's a mandatory constraint, since the REST services I have to use expect a request in that…
M-elman
  • 313
  • 5
  • 16
3
votes
1 answer

How to accomplish an async HTTP client input stream that isn't byte array input stream?

I am using Async Http Client to download lots of (possibly large) files from the internet. In my particular case, I need to send along the InputStream of bytes from these downloading URLs to another service to parse. A naive approach would be to do…
Nicholas DiPiazza
  • 10,029
  • 11
  • 83
  • 152
3
votes
1 answer

Non blocking IO and HystrixObservableCommand

I understand that There are benefits of using hystrix to wrap dowstream service calls. Also, there are several advantages of using non-blocking IO to call downstream services. (especially in my application, which is typically kind of a proxy…
robinkc
  • 1,318
  • 8
  • 12
3
votes
3 answers

JsonHttpResponseHandler - method does not override method from its superclass

I have been struggling with this code for some time now. Why am I getting the follow error? method does not override method from its superclass Here is the code: public void CanSendPassword() { asyncHttpClientPassword = new AsyncHttpClient(); …
timv
  • 3,346
  • 4
  • 34
  • 43
3
votes
1 answer

get() immediately after obtaining ListenableFuture

If I get a ListenableFuture when calling an external system using the AsyncHttpClient, and I call get() immediately - will the current thread not wait until the async thread is ready with a Response? If that is true, what is the benefit of using…
DanglingPointer
  • 261
  • 1
  • 6
  • 19
1 2
3
21 22