MockRoundTrip

data class MockRoundTrip(val expected: HttpRequest?, val respondWith: HttpResponse? = null)

An expected HttpRequest with the response that should be returned by the engine

Parameters

expected

the expected request. If null no assertions are made on the request

respondWith

the response to return for this request. If null it defaults to an empty 200-OK response

Constructors

Link copied to clipboard
constructor(expected: HttpRequest?, respondWith: HttpResponse? = null)

Properties

Link copied to clipboard
Link copied to clipboard