http_sensitive_headers 0.0.1 copy "http_sensitive_headers: ^0.0.1" to clipboard
http_sensitive_headers: ^0.0.1 copied to clipboard

outdated

This is a HttpClient Adapter library to allow case 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 AltHttpClient(). 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!

2
likes
90
pub points
22%
popularity

Publisher

unverified uploader

This is a HttpClient Adapter library to allow case sensitive headers

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on http_sensitive_headers