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. [...]
read-only, inherited
- httpReasonPhrase ↔ String
-
read / write
- httpResponseCode ↔ int
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Constants
-
httpStatusPhrases
→ const Map<
String, String> -
Mapping of the most common HTTP status code to text.
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
const {"100" : "Continue", "200" : "OK", "201" : "Created", "202" : "Accepted", "300" : "Multiple Choices…