EndpointWhenRequest

class EndpointWhenRequest[A, I, E, O](endpoint: Endpoint[A, I, E, O, _], whenRequest: WhenRequest)
class Object
trait Matchable
class Any

Value members

Concrete methods

def generic: WhenRequest

Exposes underlying generic stubbing which allows to stub with an arbitrary response

Exposes underlying generic stubbing which allows to stub with an arbitrary response

def thenError(errorResponse: E, statusCode: StatusCode): SttpBackendStub[F, R]
def thenSuccess(response: O): SttpBackendStub[F, R]