toString method

  1. @override
String toString()
override

toString reports only the operational shape. The body and headers stay opaque - the body may carry an encrypted blob or gateway response codes that should not be logged at this layer.

Implementation

@override
String toString() => 'GatewayTransportResponse('
    'statusCode=$statusCode, '
    'bodyBytes=${body?.length ?? 0}, '
    'headerCount=${headers.length})';