Skip to main content

Definition

Assembly: CloudNimble.Breakdance.Assemblies.dll Namespace: CloudNimble.Breakdance.Assemblies.Http Inheritance: CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotCaptureHandler

Syntax

Summary

Handler for capturing HTTP responses and writing them to files.

Remarks

This class is deprecated. Use ResponseSnapshotCaptureHandler instead.

Constructors

.ctor

Creates a new TestCacheWriteDelegatingHandler with the specified root folder path.

Syntax

Parameters

Remarks

This constructor is deprecated. Use ResponseSnapshotCaptureHandler instead.

.ctor Inherited

Inherited from CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotCaptureHandler
Creates a new ResponseSnapshotCaptureHandler that saves response snapshots to the specified path.

Syntax

Parameters

.ctor Inherited

Inherited from CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBase
Creates a new ResponseSnapshotHandlerBase with the specified snapshot storage path.

Syntax

Parameters

Examples

Properties

ResponseSnapshotsPath Inherited

Inherited from CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBase
Gets the root folder path where response snapshot files are stored.

Syntax

Property Value

Type: string

Methods

GetFileExtensionString Inherited

Inherited from CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBase
Maps the MediaType header in the HttpRequestMessage to a known list of file extensions.

Syntax

Parameters

Returns

Type: string The file extension string for the request’s Accept header.

Exceptions

GetPathInfo Inherited

Inherited from CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBase
Parses the RequestUri in the HttpRequestMessage into a Path-safe string suitable for storing response snapshots on the file system.

Syntax

Parameters

Returns

Type: (string, string) A tuple containing the directory path and file path components.

Exceptions

GetResponseMediaTypeString Inherited

Inherited from CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBase
Maps the file extension in the specified path to a known list of media types.

Syntax

Parameters

Returns

Type: string The MIME type string for the file extension.

SendAsync Override

Inherited from CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotCaptureHandler
Sends the request to the actual endpoint and captures the response as a snapshot file.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> The HttpResponseMessage from the actual endpoint.

Exceptions

SendAsyncInternal Inherited

Inherited from CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotCaptureHandler
Allows test projects to call the otherwise inaccessible CancellationToken) method directly.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> The HttpResponseMessage from the actual endpoint.