问题
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