Package-level declarations

Types

Link copied to clipboard
class CapturedBody @JvmOverloads constructor(val text: String?, val truncated: Boolean = false, val byteSize: Long? = null, val bytes: ByteArray? = null)

A captured request or response body, as reported through NetworkCaptureSink.

Link copied to clipboard
class CapturedPriorResponse(val url: String, val statusCode: Int)

A response the HTTP client answered with another request before the final response: a redirect it followed, or an authentication challenge it answered. Reported in CapturedResponse.priorResponses.

Link copied to clipboard

A response as a capture adapter reports it through NetworkCaptureSink.completeRequest.

Link copied to clipboard
interface MockRule

A read-only view of a network mock rule.

Link copied to clipboard

Decides whether a request is captured.

Link copied to clipboard

A request as a NetworkCaptureFilter sees it, before anything is captured, so its URL and headers are not redacted yet.

Link copied to clipboard

HTTP-client-agnostic sink that records network transactions.

Link copied to clipboard
fun interface NetworkClassifier

Classifies a request URL into zero or more category labels.

Link copied to clipboard
fun interface NetworkSender

Sends a NetworkSendRequest and returns its NetworkSendResult.

Link copied to clipboard

A read-only request handed to a NetworkSender to be replayed/sent.

Link copied to clipboard

The outcome of a NetworkSender.send call.

Link copied to clipboard
interface Redactor

Removes sensitive data from captured network traffic before it is stored.

Link copied to clipboard
class TransactionId @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(val value: String)

An opaque handle identifying a captured network transaction.

Link copied to clipboard

What a Redactor knows about a WebSocket message besides its payload.

Properties

Link copied to clipboard

The default NetworkCaptureFilter, which captures every request.

Link copied to clipboard

The default NetworkClassifier that assigns no categories to any URL.