EndpointWhenRequest

sttp.tapir.server.stub.SttpStubServer.RichSttpBackendStub.EndpointWhenRequest
class EndpointWhenRequest[A, I, E, O](endpoint: Endpoint[A, I, E, O, _], whenRequest: WhenRequest)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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

Attributes

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