HttpLink constructor
HttpLink(})
Construct the Link
You can pass a httpClient
to extend to customize the network request.
Implementation
HttpLink(
String uri, {
this.defaultHeaders = const {},
this.useGETForQueries = false,
http.Client? httpClient,
this.serializer = const RequestSerializer(),
this.parser = const ResponseParser(),
this.httpResponseDecoder = _defaultHttpResponseDecoder,
}) : uri = Uri.parse(uri) {
_httpClient = httpClient ?? http.Client();
}