delay MockWebServer response

孤人 提交于 2020-01-03 18:58:30

问题


How can I delay a Square MockWebServer HTTP response?

There is a response.setBodyDelayTimeMs(...); method but this is only used in SpdySocketHandler and not for HTTP requests.


回答1:


That's a bug that we OkHttp maintainers need to fix. If you report it on our issue tracker, we'll tale care of it. Or better yet, send us a pull request!



来源:https://stackoverflow.com/questions/26778379/delay-mockwebserver-response

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!