Captures a response (and the request that produced it) into a loggable snapshot.
Optionalresponse: HttpResponse<unknown>
Normalized response to snapshot.
OptionalrequestConfig: LoggableRequestConfig
Request configuration the response answered.
Optionalredaction: Redaction
Redaction engine carrying the consumer's sensitive-key vocabulary; defaults to the base one.
ReadonlydataReadonlyheadersOptional ReadonlymethodReadonlyparamsReadonlyrequestReadonlyresponseOptional ReadonlystatusOptional ReadonlyurlSerializes the log data to JSON in the fixed key order, redacting
every value through the injected vocabulary. ONE record is ONE
line: the host that reads these lines back (a Homey diagnostic
report) keeps about the last hundred lines of an app's stdout, and
an indented Classic /User/ListDevices body alone ran past that
window, so a report carried the tail of one dump and no other line
at all. A body above MAX_LOGGED_BODY_BYTES is omitted whole
and counted, so a hundred records also fit the report's upload.
The redacted, single-line JSON record.
Structured log data for an API response.