Definition
Assembly: CloudNimble.Breakdance.Assemblies.dll Namespace: CloudNimble.Breakdance.Assemblies.Http Inheritance: CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Summary
A DelegatingHandler that captures HTTP responses and saves them as snapshot files.Remarks
This handler passes requests through to the actual endpoint, then captures the response and saves it as a snapshot file. This enables recording real API responses for later replay during testing. Use this handler during an initial recording phase to capture responses from third-party APIs, then use ResponseSnapshotReplayHandler to replay those responses during test execution without hitting live endpoints.Examples
Constructors
.ctor
Creates a new ResponseSnapshotCaptureHandler that saves response snapshots to the specified path.Syntax
Parameters
.ctor Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Parameters
Examples
Properties
ResponseSnapshotsPath Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Property Value
Type:string
Methods
GetFileExtensionString Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Parameters
Returns
Type:string
The file extension string for the request’s Accept header.
Exceptions
GetPathInfo Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Parameters
Returns
Type:(string, string)
A tuple containing the directory path and file path components.
Exceptions
GetResponseMediaTypeString Inherited
Inherited from
CloudNimble.Breakdance.Assemblies.Http.ResponseSnapshotHandlerBaseSyntax
Parameters
Returns
Type:string
The MIME type string for the file extension.