GatewayTransportRequest class

Single outbound HTTP request. Carries the encrypted payload in its body; the transport adapter MUST forward the body verbatim.

Constructors

GatewayTransportRequest({required String method, required String url, Map<String, String> headers = const {}, String? body, Duration timeout = const Duration(seconds: 30)})
const

Properties

body → String?
Encoded body. null for methods that have no body. Sensitive: for transaction handoffs this is the JSON-encoded GatewayTransactionRequest which contains the encrypted payload. Never log it.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
HTTP headers. The gateway layer fills Content-Type and Authorization; transport adapters MUST NOT inject additional ones (other than user-agent / connection metadata).
final
method → String
HTTP method (POST / GET / etc). Upper-case ASCII.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
Per-request timeout.
final
url → String
Absolute URL. The gateway layer builds this from GatewayConfig.backendBaseUrl + the client-supplied path. The transport adapter does NOT modify it.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
toString redacts the body and the contents of headers. Subscribers must use this form, not the raw fields.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited