Interface MockHttpClient
- All Known Implementing Classes:
- MockAsyncHttpClient,- MockSyncHttpClient
public interface MockHttpClient
- 
Method SummaryModifier and TypeMethodDescriptionGet the last request called on the mock.Get all requests called on the mock.voidreset()Resets this mock by clearing any captured requests and wiping any stubbed responses.voidstubNextResponse(HttpExecuteResponse nextResponse) Sets up the next HTTP response that will be returned by the mock.voidstubNextResponse(HttpExecuteResponse nextResponse, Duration delay) Sets up the next HTTP response that will be returned by the mock with a delay.default voidvoidstubResponses(HttpExecuteResponse... responses) Sets the next set of HTTP responses that will be returned by the mock.voidstubResponses(Pair<HttpExecuteResponse, Duration>... responses) 
- 
Method Details- 
resetvoid reset()Resets this mock by clearing any captured requests and wiping any stubbed responses.
- 
stubNextResponseSets up the next HTTP response that will be returned by the mock. Removes responses previously added to the mock.
- 
stubNextResponse200default void stubNextResponse200()
- 
stubNextResponseSets up the next HTTP response that will be returned by the mock with a delay. Removes responses previously added to the mock.
- 
stubResponses
- 
stubResponsesSets the next set of HTTP responses that will be returned by the mock. Removes responses previously added to the mock.
- 
getLastRequestSdkHttpRequest getLastRequest()Get the last request called on the mock.
- 
getRequestsList<SdkHttpRequest> getRequests()Get all requests called on the mock.
 
-