leonardoxh / asyncokhttpclient Goto Github PK
View Code? Open in Web Editor NEWA simple android asynchronous library for android using okhttp
License: Apache License 2.0
A simple android asynchronous library for android using okhttp
License: Apache License 2.0
My app is getting disabled while including your library in development mode, installing an apk from outside the Google PlayStore or deploying a build with adb will get it disabled.
Included with:
compile 'com.github.leonardoxh:AsyncOkHttpClient:1.1@aar'
I think on success callbacks and errors callbacks must suport the request headers.
The last version is 1.5.3
The current version used by the library is 1.3
Hi,
I'm kinda new to Java/Android. I tried to post data to my server using AsyncHttpClient, but my SSL Certificates were getting mixed up and a lot of problems. Then i came to know about this, but I am unable to find any example on how to use it to post data, especially JSON data. If someone can help me, it'll be great :)
Thanks and Regards,
Rijo John
Create samples for the client using all handlers, this samples will not go for Maven Central.
Move all the response handlers to a sub package called "response"
This is missing yet, but the library follow the Android team code style with some adaptions, so...
Since this will change nothing, because on the most cases the exception will be delivered to an callback and the user will decide what do, but following the "Android way" this is necessary.
OkHttp have a built-in HttpResponseCache,
The client will define a way to set this cache.
Implement a serializable cookies to persists the cookies and access thought the requests.
when i use your library ,i find you use old version of okhttp(1.5.4),but i know the new version is 2.4,
“mClient = client.open(request.getURL());” can not use in the new version of okhttp
Use instead OkHttp Request class, I think is best solution now.
Well with this changes I think this is necessary.
I like Universal Image Loader change log, expect something like this.
Tests are appreciated.
I think I will use Robolectric with MockWebService (from Square Inc.).
The point here will be, cover all response handlers and the handler data.
Well, the title speak for itself.
Snapshot build for 1.1 with the current features
The objective here is cancel the request in any handler, doesn't matter if the cancel is called on UI Thread or not
Simple parameters seem to map to json allright, but more complex ones don't flow so fluently. Would like to have option of passing parameters as a json object.
ie simple key / value pairs seem to end up as properly formed json, but when value is a collection of key/value pairs itself, allsorts of escaping happens and it ends up broken.
I came to this library from the loopj async library, but it had issues with sni, now this library handles sni but has issues with json. I can help with fixing if time is a constraint.
I have the current code just time question to up into the client.
Basic the RequestParams will change and another changes on AsyncHttpRequest (internal only). Not big API changes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.