PlainTextTransformer class

Minimal Transformer that skips JSON parsing and Content-Type validation.

ISchoolPlusService return HTML/XML and send malformed Content-Type headers like "text/html;;charset=UTF-8" which cause MediaType.parse() to fail. This transformer bypasses all JSON/MIME type handling and returns raw strings.

Inheritance

Constructors

PlainTextTransformer()

Properties

hashCode int
The hash code for this object.
no setterinherited
jsonDecodeCallback JsonDecodeCallback
getter/setter pairinherited
jsonEncodeCallback JsonEncodeCallback
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transformRequest(RequestOptions options) Future<String>
transformRequest allows changes to the request data before it is sent to the server, but after the RequestInterceptor.
inherited
transformResponse(RequestOptions options, ResponseBody responseBody) Future
Skips MIME validation and returns the response body as a raw string (or stream/bytes when those response types are requested).
override

Operators

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