execute

open suspend override fun execute(request: HttpRequest): Result<HttpResponse>(source)

Plays the script for request.

Return

the step's response or failure, Result.failure(TransportFailure.BodyTooLarge(...)) over the cap, or Result.failure(HttpFailure.Closed("transport")) after close.

Parameters

request

the request.

Throws

if no stub matches and the policy is Unmatched.Fail.

kotlinx.coroutines.CancellationException

if the caller is cancelled during the step's delay.