RequestEntry Pennington.Tui
A single captured HTTP request, held in BoundedSequenceLog<RequestEntry>.
Properties
DurationSystem.TimeSpan- Wall time between request start and completion.
Methodstring- HTTP method (GET, POST, …).
Pathstring- Request path without query string.
QueryStringstring- Query string including the leading
?, or empty. Sequencelong- Default:
0Monotonically increasing id assigned at append time; used to stream new rows into the TUI. Statusint- Default:
0HTTP response status code. TimestampSystem.DateTimeOffset- When the request completed.
Constructors
.ctor
#public readonly record struct RequestEntry(
long Sequence,
DateTimeOffset Timestamp,
string Method,
string Path,
string QueryString,
int Status,
TimeSpan Duration);A single captured HTTP request, held in BoundedSequenceLog<RequestEntry>.
Parameters
Sequencelong- Monotonically increasing id assigned at append time; used to stream new rows into the TUI.
TimestampDateTimeOffset- When the request completed.
Methodstring- HTTP method (GET, POST, …).
Pathstring- Request path without query string.
QueryStringstring- Query string including the leading
?, or empty. Statusint- HTTP response status code.
DurationTimeSpan- Wall time between request start and completion.
Pennington.Tui.RequestEntry
namespace Pennington.Tui;
/// A single captured HTTP request, held in BoundedSequenceLog<RequestEntry>.
public record RequestEntry
{
/// A single captured HTTP request, held in BoundedSequenceLog<RequestEntry>.
public readonly record struct RequestEntry(
long Sequence,
DateTimeOffset Timestamp,
string Method,
string Path,
string QueryString,
int Status,
TimeSpan Duration);
/// Wall time between request start and completion.
TimeSpan Duration
;
/// HTTP method (GET, POST, …).
string Method
;
/// Request path without query string.
string Path
;
/// Query string including the leading ?, or empty.
string QueryString
;
/// Monotonically increasing id assigned at append time; used to stream new rows into the TUI.
long Sequence
;
/// HTTP response status code.
int Status
;
/// When the request completed.
DateTimeOffset Timestamp
;
}