Git Product home page Git Product logo

asyncokhttpclient's People

Contributors

holmla avatar leonardoxh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

asyncokhttpclient's Issues

App is getting disabled.

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'

Request Headers

I think on success callbacks and errors callbacks must suport the request headers.

  1. Modify the callbacks.
  2. Modify response handlers.

How to post JSON Data using AsyncOKHttpClient

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

Samples

Create samples for the client using all handlers, this samples will not go for Maven Central.

Contributing.md

This is missing yet, but the library follow the Android team code style with some adaptions, so...

Best try catch statments

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.

Cookies Support

Implement a serializable cookies to persists the cookies and access thought the requests.

  1. Probably like Loopj CookieStore, except the cookie interface from Apache.
  2. More methods to access this cookies.
  3. Security access.

can use new version of okhttp?

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

Changelog.md

Well with this changes I think this is necessary.

I like Universal Image Loader change log, expect something like this.

Unit Tests

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.

Wiki

Well, the title speak for itself.

Cancel Requests Method

The objective here is cancel the request in any handler, doesn't matter if the cancel is called on UI Thread or not

json parameters support

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.

File upload

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.