RawApiResponse class

Stabile, transport-unabhängige Antwort von RawApi.

Enthält bewusst kein http.Response, damit Aufrufer nicht an die zugrunde liegende HTTP-Client-Bibliothek gekoppelt werden. Eine Raw-Antwort wird nicht in fachliche Modelle gemappt: HTTP-Fehlerstatus (z.B. 4xx/5xx) werden als RawApiResponse zurückgegeben, nicht geworfen. Nur Transport-Fehler (Timeout, Netzwerk) werfen eine Exception.

Constructors

RawApiResponse({required int statusCode, required Map<String, String> headers, required String body, required Uint8List bodyBytes})
const

Properties

body String
Response-Body als dekodierter String.
final
bodyBytes Uint8List
Response-Body als Rohbytes.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Response-Header, wie vom Server geliefert.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
HTTP-Statuscode der Antwort.
final

Methods

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

Operators

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