retrofit - MockWebServer response delay - testing timeouts -
i'm trying test http timeout scenarios using mockwebserver answers test requests sent retrofit/okhttp. (this question was asked before years ago, @ time concerned bug in mockwebserver. also, api has since changed fair bit, think reposting question warranted.)
there seem several related methods, i'd appreciate solution issue clear example: i'm unsure difference between..
.delaybody
and.throttlebody
also, both of these methods seem delay/throttle body - not possible set timeout response header? i.e. along lines of "wait x seconds after next incoming request before send out response".
try setting response’s socket policy no_response.
Comments
Post a Comment