WebResponse class final

The site's response to a Request: status, and either created (the id the destination made of it, when it made one) or refusedBecause (why, in the site's own words, when status was not 2xx).

Carries no body: naming the web request made, where it went and what came back is enough, since what it carried is already elsewhere in the record. A refused sign-in, where nothing was sent, is Refused, not this.

Constructors

WebResponse({required int status, String? created, String? refusedBecause})
const

Properties

created → String?
final
hashCode → int
The hash code for this object.
no setterinherited
refusedBecause → String?
Why the destination refused a non-2xx status, in its own words, so a reader can say why without reaching into a log only the driver's host can see.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
final

Methods

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

Operators

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