@@ -29,20 +29,20 @@ import {
2929} from '@socketsecurity/lib/debug'
3030
3131export type ApiRequestDebugInfo = {
32- method ?: string | undefined
33- url ?: string | undefined
34- headers ?: Record < string , string > | undefined
3532 durationMs ?: number | undefined
33+ headers ?: Record < string , string > | undefined
34+ method ?: string | undefined
3635 // ISO-8601 timestamp of when the request was initiated. Useful when
3736 // correlating failures with server-side logs.
3837 requestedAt ?: string | undefined
38+ // Response body string; truncated by the helper to a safe length so
39+ // logs don't balloon on megabyte payloads.
40+ responseBody ?: string | undefined
3941 // Response headers from the failed request. The helper extracts the
4042 // cf-ray trace id as a first-class field so support can look it up in
4143 // the Cloudflare dashboard without eyeballing the whole header dump.
4244 responseHeaders ?: Record < string , string > | undefined
43- // Response body string; truncated by the helper to a safe length so
44- // logs don't balloon on megabyte payloads.
45- responseBody ?: string | undefined
45+ url ?: string | undefined
4646}
4747
4848const RESPONSE_BODY_TRUNCATE_LENGTH = 2_000
0 commit comments