Http4GetImplementation constructor

Http4GetImplementation({
  1. List<InterceptorContract> interceptors = const [],
  2. required String url,
  3. RetryPolicy? retryPolicy,
  4. Map<String, dynamic> params = const {},
  5. 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');
}