Http4PatchImplementation constructor

Http4PatchImplementation({
  1. List<InterceptorContract> interceptors = const [],
  2. required String url,
  3. Map<String, dynamic> body = const {},
  4. Map<String, dynamic> params = const {},
  5. Map<String, String> headers = const {},
  6. RetryPolicy? retryPolicy,
})

Implementation

Http4PatchImplementation({
  List<InterceptorContract> interceptors = const [],
  required String url,
  this.body = const {},
  this.params = const {},
  this.headers = const {},
  this.retryPolicy,
}) {
  client = InterceptedClient.build(
    interceptors: interceptors,
    retryPolicy: retryPolicy,
  );
  baseUrl = Uri.parse('${Http4Config().baseUrl}$url');
}