RecordedRequest

data class RecordedRequest(val method: HttpMethod, val uri: String, val headers: Map<String, List<String>>)(source)

Immutable snapshot of an HTTP request for recording purposes.

Unlike CapturedRequest, this class does not retain references to the underlying request or connection, making it safe for long-term storage (e.g., tracking requests that arrived with no matching stub).

Constructors

Link copied to clipboard
constructor(method: HttpMethod, uri: String, headers: Map<String, List<String>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The headers of the request.

Link copied to clipboard

The HTTP method of the request.

Link copied to clipboard
val uri: String

The URI of the request.

Functions

Link copied to clipboard
open override fun toString(): String