Effective OkHttp
来源:互联网 发布:带数字5的网络用语 编辑:程序博客网 时间:2024/05/08 21:30
原始地址: http://omgitsmgp.com/2015/12/02/effective-okhttp/
2. Integrate with Stetho
Stetho is a lovely library by Facebook that allows you to inspect your Android application using the Chrome Developer Tools feature of Chrome.
In addition to allowing you to inspect the SQLite databases and view hierarchies of your application, Stetho allows you to inspect each request and response made by OkHttp:
This introspection is very useful for ensuring that the server is returning the HTTP headers that permit caching of resources, as well as verifying that no requests are made when cached resources should exist.
To enable Stetho, simply add a StethoInterceptor
instance to the list of network interceptors:
okHttpClient.networkInterceptors().add(new StethoInterceptor());
Then, after running your application, open Chrome and navigate to chrome://inspect
. The device and application identifier of the application should be listed. Visit its “inspect” link to open the Developer Tools, and then open the Network tab to begin monitoring requests by OkHttp.
- Effective OkHttp
- Effective OkHttp
- OkHttp
- okhttp
- OkHttp
- OkHttp
- OkHttp
- okhttp
- OKHTTP
- okhttp
- Okhttp
- okHttp
- OkHttp
- okhttp
- Okhttp
- okhttp
- OkHttp
- okhttp
- java 字符串 反转
- Xcode8导入框架出现Use Legacy Swift Language Version的报错
- spring reactor 多线程配置
- 虚拟机VirtualBox安装Ubuntu14.04
- oracle创建用户与表空间
- Effective OkHttp
- scroll家族
- win下C/C++调用python
- 安卓开发技术:监听软键盘的显示与隐藏
- 软件工程笔记整理
- spring中配置DBCP BasicDataSource的方式
- Spring Security java配置与XML配置的对应和转换
- 【常用模板】 混合背包
- codesmart在vs6中似乎只有vb6的版本,那就用Visual Assist做补充吧。其实mztools