Raw body bytes
Content-Type header value (or null)
OptionalcustomParser: (Optional custom parser function
OptionalonParseFailure: (raw: Uint8Array, error: Error) => voidCalled when JSON parsing fails before falling back to text
Optionalheaders: Record<string, string>Response headers (passed to customParser)
Optionalurl: stringRequest URL (passed to customParser)
Parsed body value (T, string, or Uint8Array)
Parse a raw body into a typed value. Uses content-type to select the parser: