leelit
leelit
首先我想说的是这个是我个人理解的MVP- -,我觉得网上的文章千千万万,貌似也没有完全一样的编码风格,在我做这个项目的过程中google出了官方的mvp写法推荐,以后可能遵循者会比较多。 然后,我实践下来,感觉有两个好处比较明显:1、开发起来比原本快一点,虽然代码会写多一点,但是写起来比较顺手。2、定位问题比较快,因为模块之间的职责更清晰了。
the sample [https://github.com/square/okhttp/wiki/Recipes](https://github.com/square/okhttp/wiki/Recipes) doesn't close response body neither. normally i won't sumit so many requests at the same time, do i need to close response body all the time? just...
you mean if i call `body().string()`, no need to call `body().close()`, other situation it needs ? after i call close for all response body except `body().string()`, no more warning.
https://stackoverflow.com/questions/45244345/does-okhttp3-reuse-connection-by-default