Transformer class abstract
Transformer allows changes to the request/response data before it is sent/received to/from the server.
Dio has already implemented a DefaultTransformer, and as the default Transformer. If you want to custom the transformation of request/response data, you can provide a Transformer by your self, and replace the DefaultTransformer by setting the dio.Transformer.
Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
) → String
A string representation of this object.
RequestOptions options) → Future< String>
transformRequestallows changes to the request data before it is sent to the server, but after the
RequestOptions options, ResponseBody response) → Future
transformResponseallows changes to the response data before it is passed to
String? contentType) → bool
- Following: https://mimesniff.spec.whatwg.org/#json-mime-type
Map map, [ListFormat listFormat = ListFormat.multi]) → String
- Deep encode the Map<String, dynamic> to percent-encoding. It is mostly used with the "application/x-www-form-urlencoded" content-type.