Last updated:
0 purchases
http sensitive headers
SensitiveHttpClient #
This is a HttpClient Adapter library to allow case sensitive headers.
This package is simply snapshot of the part of default Dart HTTP Client taken from the current master with patch TO ALLOW CASE SENSITIVE REQUEST HEADERS.
Default client forces all headers to lowercase which can create problems with some servers (IE. you can't perform basic authorization because server expects 'Authorization' header, not 'authorization'. You can read more about it HERE and HERE. If you possible can (not everyone can), try to contact server owner to fix server behavior.
If everything else fails, and you have no other options you can use this package as a simple replacement for default HTTP client. It inherits from abstract HTTP client just as default one, just instead of HttpClient() from dart:io package call SensitiveHttpClient(). It's been tested and working with Dio. You can find example HERE.
The reference implementation details were taken from
HERE.
This package supports flutter 2.0.x and Dart 2.12.x versions
Issues and feedback #
Please file issues to send feedback or report a bug. Thank you!
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.