HttpRecordingEntry Class
Represents a recorded HTTP request/response pair.
public sealed class HttpRecordingEntryConstructors
| Name | Description |
|---|---|
| HttpRecordingEntry() |
HttpRecordingEntry()
- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public HttpRecordingEntry()No documentation is available.
Properties
| Name | Description |
|---|---|
| HttpVersion | Gets or sets the HTTP version of the response (e.g., 1.1, 2.0). When null, the default version is used on replay. |
| Method | Gets or sets the HTTP method (e.g., GET, POST). |
| ReasonPhrase | Gets or sets the reason phrase returned with the status code, when the server sent one. |
| RecordedAt | Gets or sets the timestamp when this entry was recorded. |
| RequestBody | Gets or sets the request body. |
| RequestHeaders | Gets or sets the request headers. |
| RequestUri | Gets or sets the absolute request URI. |
| ResponseBody | Gets or sets the response body. |
| ResponseHeaders | Gets or sets the response headers. |
| StatusCode | Gets or sets the HTTP status code. |
HttpVersion
HttpRecordingEntry.csMethod
HttpRecordingEntry.csReasonPhrase
HttpRecordingEntry.csRecordedAt
HttpRecordingEntry.csGets or sets the timestamp when this entry was recorded.
public DateTimeOffset RecordedAt { get; set; }Property value
RequestBody
HttpRecordingEntry.csRequestHeaders
HttpRecordingEntry.csGets or sets the request headers.
public Dictionary<string, string[]>? RequestHeaders { get; set; }Property value
RequestUri
HttpRecordingEntry.csResponseBody
HttpRecordingEntry.csResponseHeaders
HttpRecordingEntry.csGets or sets the response headers.
public Dictionary<string, string[]>? ResponseHeaders { get; set; }