RecordedRequest

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).

Properties

Link copied to clipboard

The raw request body as text, or null if the body was empty or binary.

Link copied to clipboard

The headers of the request.

Link copied to clipboard

Whether the request was matched by a stub.

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 operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String