Closed rutvik110 closed 1 month ago
Good idea, thanks for volunteering! We should add this in some form to the helpers. The only detail I'm not sure of is the naming of the class and if we want to avoid colliding with the dart:html
name for some reason, but that can be discussed in the code review.
Issue:
Dart
html
library exportsHttpStatus
abstract class that defines various http status codes. I can't find a replacement for this in theweb
package. Currently, theHttpStatus
is part of darts internal apis so one can't directly import it in their project but this api is exported only through darthtml
andio
libraries. Asweb
is replacing thehtml
library eventually, addition of this api would be quite handy.Proposal:
Add
HttpStatus
api similar to one exported fromhtml
library. I believe one can just copy the api from dart sdk which should be good enough. I'm ready to put up a PR on this.