Definition
Assembly: CloudNimble.Breakdance.Assemblies.dll Namespace: CloudNimble.Breakdance.Assemblies.Http Inheritance: System.Net.Http.DelegatingHandlerSyntax
Summary
Base class for implementation of TestCache handlers for unit testing.Constructors
.ctor
Constructor overload for specifying the root folder path.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
responseFilesPath | string | Root folder path for storing static response files. |
Properties
ResponseFilesPath
Stores the root folder for reading/writing static response files.Syntax
Property Value
Type:string
Methods
GetFileExtensionString
Maps the MediaType header in the HttpRequestMessage to a known list of file extensions.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
request | System.Net.Http.HttpRequestMessage | - |
Returns
Type:string
GetResponseMediaTypeString
Maps the file extension in the specified path to a known list of media types.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
filePath | string | - |
Returns
Type:string