HTTPStatus class

Implements HTTP Response Code and associated Reason Phrase. See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

Constructors

HTTPStatus(int httpResponseCode, [String? httpPhrase])

Properties

hashCode int
The hash code for this object.
no setterinherited
httpReasonPhrase String?
getter/setter pair
httpResponseCode int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

httpStatusPhrases → const Map<int, String>
Mapping of the most common HTTP status code to text. See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes