You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/algoliasearch-client-dart/packages/chopper_requester/README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,9 @@ final requester = ChopperRequester({
80
80
/// The Chopper Interceptors to use for modifying the request
81
81
Iterable<Interceptor>? interceptors,
82
82
/// The HTTP client to use for sending requests
83
-
Client? client
83
+
Client? client,
84
+
/// A custom JSON converter to use for serializing and deserializing JSON
85
+
JsonConverter? converter,
84
86
});
85
87
```
86
88
@@ -98,11 +100,11 @@ final requester = ChopperRequester(
98
100
);
99
101
```
100
102
101
-
### Custom Interceptors
103
+
####Custom Interceptors
102
104
103
105
For interceptors please see the [Chopper documentation](https://hadrien-lejard.gitbook.io/chopper/interceptors).
104
106
105
-
### Custom Clients
107
+
####Custom Clients
106
108
107
109
Via the `client` option users can use platform specific HTTP clients such:
108
110
-[cronet_http](https://pub.dev/packages/cronet_http) on Android
@@ -130,6 +132,11 @@ Via the `client` option users can use platform specific HTTP clients such:
130
132
),
131
133
);
132
134
```
135
+
136
+
#### Parsing JSON in the background using Isolates
137
+
138
+
Parsing JSON in the background is a good idea if you don't want to block the main thread.
139
+
Please see the [Chopper documentation](https://hadrien-lejard.gitbook.io/chopper/faq#decoding-json-using-isolates) on Decoding JSON using thread pool workers.
0 commit comments