BaseRequestExpectation

open class BaseRequestExpectation(tab: Tab, val urlPattern: Regex) : RequestExpectation

Default implementation of RequestExpectation.

Constructors

Link copied to clipboard
constructor(tab: Tab, urlPattern: Regex)

Properties

Link copied to clipboard
open override val urlPattern: Regex

Functions

Link copied to clipboard
open suspend override fun getRawResponseBody(): EncodedBody

Fetches the raw response body once it has been received.

Link copied to clipboard
open suspend override fun getRequest(): Network.Request

Returns the request once it has been received.

Link copied to clipboard

Returns the request event once it has been received.

Link copied to clipboard
open suspend override fun getResponse(): Network.Response

Returns the response once it has been received.

Link copied to clipboard
inline suspend fun <T> RequestExpectation.getResponseBody(): T

Fetches the response body once it has been received.

Link copied to clipboard

Returns the response event once it has been received.

Link copied to clipboard
open suspend override fun <T> use(block: suspend RequestExpectation.() -> T): T

Expect a request/response that matches the given urlPattern.