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
HttpStatus is useful in the browser as well as on the command line #3598
Comments
I recommend creating a new library that can be accessed both on the server and in a browser, and move the parts of dart:html and dart:io that are useful on both ends to that library. |
I don't expect us to get to this until after M1. Added this to the Later milestone. |
This comment was originally written by @butlermatt I love this idea and I agree with Comment #2 would a library like dart:http be suitable for this? Or should it be more generic for additional areas that we might want to share functionality between the two libraries (dart:io/dart:html)? |
Removed Area-HTML label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
This issue was originally filed by jameso...@gmail.com
The HttpStatus class is currently in dart:io, which is only available in command-line dart. However, it is also useful in the browser, as XMLHttpRequest contains a status field too.
It would be helpful if this class was available in both dart:io and dart:html, or else put into another library which was available in both places.
The text was updated successfully, but these errors were encountered: