-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a HttpHeaders class for platform-independent use #4
Comments
Same goes for HttpStatus and ContentType |
I'm not a fan of providing giant enums for string-based values like these. I find it rarely provides value on top of just writing the strings yourself, while producing a lot of API overhead and making the code harder to read. I understand the argument that they provide better static checking, but I think constants should be used for improving the readability of the code and correctness should generally be left to the tests, and constants here don't help the readability. I will point out that |
* Remove usage of upper-case constants. * update SDK version * remove stable from Travis config
The dart:io.HttpHeaders actually belongs in this library.
I'd prefer at least to have it available here as well, so that there is one available for platform-independent development.
The text was updated successfully, but these errors were encountered: