Class RestResponseData
Data payload sent when an HTTP request/response is recorded.
public sealed record RestResponseData : IEquatable<RestResponseData>
- Inheritance
-
RestResponseData
- Implements
- Inherited Members
- Extension Methods
Constructors
RestResponseData(string, string, int, string, IReadOnlyDictionary<string, string>, string?, TimeSpan?)
Data payload sent when an HTTP request/response is recorded.
public RestResponseData(string Method, string RouteTemplate, int StatusCode, string ResponseBody, IReadOnlyDictionary<string, string> Headers, string? RequestUri = null, TimeSpan? Duration = null)
Parameters
MethodstringRouteTemplatestringStatusCodeintResponseBodystringHeadersIReadOnlyDictionary<string, string>RequestUristringDurationTimeSpan?
Properties
Duration
public TimeSpan? Duration { get; init; }
Property Value
Headers
public IReadOnlyDictionary<string, string> Headers { get; init; }
Property Value
Method
public string Method { get; init; }
Property Value
RequestUri
public string? RequestUri { get; init; }
Property Value
ResponseBody
public string ResponseBody { get; init; }
Property Value
RouteTemplate
public string RouteTemplate { get; init; }
Property Value
StatusCode
public int StatusCode { get; init; }