http_status 3.3.3 http_status: ^3.3.3 copied to clipboard
Constants enumerating the HTTP status codes in Dart. All status codes defined in RFC1945 (HTTP/1.0, RFC2616 (HTTP/1.1), and RFC2518 (WebDAV) are supported.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add http_status
With Flutter:
$ flutter pub add http_status
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
http_status: ^3.3.3
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:http_status/http_status.dart';