Class StubHttpMessageHandlerOptions

Namespace
XBullet.EasyTesting.Http
Assembly
XBullet.EasyTesting.Http.dll

Controls how much request and response data an HTTP stub retains.

public sealed class StubHttpMessageHandlerOptions
Inheritance
StubHttpMessageHandlerOptions
Inherited Members
Extension Methods

Properties

CaptureRequestBodies

Gets whether request bodies are read and retained. The default is true.

public bool CaptureRequestBodies { get; init; }

Property Value

bool

true to capture request bodies; otherwise, false.

CaptureResponseBodies

Gets whether consumed response bodies are retained. The default is true.

public bool CaptureResponseBodies { get; init; }

Property Value

bool

true to capture response bodies; otherwise, false.

MaximumRecordedExchanges

Gets the maximum number of completed or pending exchanges retained in recording order, or null for no limit. Zero disables exchange retention.

public int? MaximumRecordedExchanges { get; init; }

Property Value

int?

A non-negative limit, or null. The default is unlimited.

MaximumRequestBodyBytes

Gets the maximum number of request-body bytes decoded and retained per exchange, or null for no limit.

public int? MaximumRequestBodyBytes { get; init; }

Property Value

int?

A non-negative byte limit, or null. The default is unlimited.

MaximumResponseBodyBytes

Gets the maximum number of response-body bytes retained per exchange, or null for no limit.

public int? MaximumResponseBodyBytes { get; init; }

Property Value

int?

A non-negative byte limit, or null. The default is unlimited.