Http4GetImplementation constructor
Http4GetImplementation({
- List<
InterceptorContract> interceptors = const [], - required String url,
- RetryPolicy? retryPolicy,
- Map<
String, dynamic> params = const {}, - Map<
String, String> headers = const {},
Implementation
Http4GetImplementation({
List<InterceptorContract> interceptors = const [],
required String url,
this.retryPolicy,
this.params = const {},
this.headers = const {},
}) {
client = InterceptedClient.build(
interceptors: interceptors,
retryPolicy: retryPolicy,
);
baseUrl = Uri.parse('${Http4Config().baseUrl}$url');
}