NoHttp icon indicating copy to clipboard operation
NoHttp copied to clipboard

:lemon: Android实现Http标准协议框架,支持多种缓存模式,底层可动态切换OkHttp、URLConnection。

Results 76 NoHttp issues
Sort by recently updated
recently updated
newest added

最新版本: 在某些机型上(坚果R1),几乎百分百遇到这个问题,经排查,url没有问题,可以直接浏览器访问。 ``` com.yanzhenjie.nohttp.error.UnKnownHostError: Hostname can not be resolved: http://apiv4.yangkeduo.com/reviews/7611321309?ranNum=RMOOMAHbAHY&sign=fb299ea6fd7717a2aebcd374258d9c02&fromType=2&b=4662b6f46eb20583befe04d72a4ca8b7. at com.yanzhenjie.nohttp.HttpConnection.getConnection(HttpConnection.java:93) at com.yanzhenjie.nohttp.rest.RequestHandler.getHttpProtocol(RequestHandler.java:176) at com.yanzhenjie.nohttp.rest.RequestHandler.requestCacheOrNetwork(RequestHandler.java:120) at com.yanzhenjie.nohttp.rest.RequestHandler.handle(RequestHandler.java:73) at com.yanzhenjie.nohttp.rest.SyncRequestExecutor.execute(SyncRequestExecutor.java:46) at com.yanzhenjie.nohttp.rest.Worker.call(Worker.java:34) at com.yanzhenjie.nohttp.rest.Worker.call(Worker.java:23) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.yanzhenjie.nohttp.rest.Work.run(Work.java:65) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)...

如何获取重定向后的url response.request().url() 获取为:重定向前的url getHeaders().getValue("Referer",0) 和getHeaders().getValue("Location",0) 都获取不到值

android.database.sqlite.SQLiteException: Failed to change locale for db '/data/user/0/com.hskaoyan/databases/_nohttp_cache_db.db' to 'zh_CN_#Hans'. at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:394) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:219) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:194) at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:493) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:200) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:192) at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:864) at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:849) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:724) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:714)...

Nohttp 1.1.11 removeHeader(String key)无效,哪怕是removeAllHeader都无效

![image](https://user-images.githubusercontent.com/7844207/51653400-36863580-1fce-11e9-97b6-790ec4fdb3e6.png)

目前我在对接其他公司的接口,发现其他公司接口写的很散,一个功能要分好几个接口来完成。所有nohttp把多个接口整合起来调用,效果会很好。希望采纳

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.yanzhenjie.nohttp.rest.Messenger.response(com.yanzhenjie.nohttp.rest.Response)' on a null object reference at com.yanzhenjie.nohttp.rest.RequestDispatcher.run(RequestDispatcher.java:95)