MockServer
Parameters
: an artificial delay introduced before each accept()
call. Can be used to simulate slow connections.
Constructors
Functions
Enqueue a response
Enqueue a response
Enqueue a response
Enqueue a response
MockServer can only stop in between complete request/responses pairs If stop() is called while we're reading a request, this might wait forever Revisit once okio has native Timeout
Stops the server
Stops the server
Stops the server
Returns a request from the recorded requests or throws if no request has been received
Returns a request from the recorded requests or throws if no request has been received
Returns a request from the recorded requests or throws if no request has been received
Returns a request from the recorded requests or throws if no request has been received
Returns the root url for this server
Returns the root url for this server