http_sensitive_headers 0.0.2 http_sensitive_headers: ^0.0.2 copied to clipboard
This is a HttpClient Adapter library to allow case sensitive headers
Since SensitiveHttpClient inherits from abstract HTTP client just as default one, instead of HttpClient() from dart:io package call SensitiveHttpClient(). It's been tested and working with Dio. You can find example HERE.
Dio example:
(_dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate =
(HttpClient client) {
if (!(client is SensitiveHttpClient)) {
var sensitiveClient = SensitiveHttpClient();
return sensitiveClient;
}
return client;
};
#```