class
FHttpRequestLog
- Module
- Http
- Header
#include "Http/HttpRequestLog.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr size_t | kCapacity | Default 512. |
static constexpr size_t | kPreviewBytes | Default 4096. |
Public functions
| Returns | Name | Description |
|---|---|---|
FHttpRequestLog& | Get | |
void | SetEnabled | Recording costs one lock and a copy per request; the panel switches it on while it is open, tooling can leave it on. |
bool | IsEnabled | |
uint64_t | Record | Assigns the id; the oldest record is dropped once kCapacity is reached. |
std::vector<FHttpRequestRecord> | Snapshot | |
void | Clear | |
HttpTiming | TimingFromCumulative | Cumulative curl times (seconds since the start of the transfer, 0 when a phase did not happen) split into non-overlapping phases. |
FHttpRequestStats | ComputeStats | |
double | BandwidthBytesPerSecond | Bytes (request + response) of requests that finished inside (now - window, now], per second. |
std::vector<float> | BandwidthSeries | bucketCount bytes-per-second values, oldest first, each covering bucketSeconds and ending at now. |
double | NowSeconds |
Function details
Get
C++
static FHttpRequestLog& Get()SetEnabled
C++
void SetEnabled(bool enabled)Recording costs one lock and a copy per request; the panel switches it on while it is open, tooling can leave it on.
IsEnabled
C++
bool IsEnabled() constRecord
C++
uint64_t Record(FHttpRequestRecord record)Assigns the id; the oldest record is dropped once kCapacity is reached.
Snapshot
C++
std::vector<FHttpRequestRecord> Snapshot() constClear
C++
void Clear()TimingFromCumulative
C++
static HttpTiming TimingFromCumulative(double nameLookup, double connect, double appConnect, double startTransfer, double total)Cumulative curl times (seconds since the start of the transfer, 0 when a phase did not happen) split into non-overlapping phases.
ComputeStats
C++
static FHttpRequestStats ComputeStats(const std::vector<FHttpRequestRecord>& records)BandwidthBytesPerSecond
C++
static double BandwidthBytesPerSecond(const std::vector<FHttpRequestRecord>& records, double nowSeconds, double windowSeconds)Bytes (request + response) of requests that finished inside (now - window, now], per second.
BandwidthSeries
C++
static std::vector<float> BandwidthSeries(const std::vector<FHttpRequestRecord>& records, double nowSeconds, double bucketSeconds, int32_t bucketCount)bucketCount bytes-per-second values, oldest first, each covering bucketSeconds and ending at now.
NowSeconds
C++
static double NowSeconds()Generated from Http/HttpRequestLog.h via http.json · Dec 4, 2026Version 1.1.0