mergeOptions method

BaseOptions mergeOptions([
  1. Options? options
])

Implementation

BaseOptions mergeOptions([Options? options]) {
  options?.headers?.remove(Headers.contentTypeHeader);
  return copyWith(
      method: options?.method,
      receiveTimeout: options?.receiveTimeout,
      sendTimeout: options?.sendTimeout,
      extra: options?.extra,
      headers: options?.headers,
      responseType: options?.responseType,
      contentType: options?.contentType,
      validateStatus: options?.validateStatus,
      receiveDataWhenStatusError: options?.receiveDataWhenStatusError,
      followRedirects: options?.followRedirects,
      maxRedirects: options?.maxRedirects,
      requestEncoder: options?.requestEncoder,
      responseDecoder: options?.responseDecoder,
      listFormat: options?.listFormat);
}