KataCxRequest class

One outgoing HTTP request, in the small subset of HTTP this SDK needs.

Deliberately transport-agnostic: dio on iOS/Android and fetch_client on web implement KataCxTransport against this, so nothing above the transport layer knows which platform it is running on.

Constructors

KataCxRequest({required String method, required String url, Map<String, String> headers = const {}, String? body})
Creates a request. body is an already-encoded JSON string, or null for a GET.
const

Properties

body → String?
Encoded request body, or null.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
Request headers. Content-Type is added by the transport when body is set.
final
method → String
HTTP verb, uppercase.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String
Absolute URL.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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