RestRowResponse class

This class represents the rest row response, which contains original request, the response code, response body bytes bodyBytes, headers, contentLength, and more meta info related to response. The instance of RestRowResponse get passed throughout to response middlewares and then to provided to RestResponseConverter from the RestRequest's instance.

Constructors

RestRowResponse(RestRequest request, int? code, Uint8List? bodyBytes, Map<String, String>? headers, int? contentLength, bool? isRedirect, bool? persistentConnection, String? reasonPhrase)
const
RestRowResponse.undefined(RestRequest request)
const

Properties

bodyBytes Uint8List?
final
code int?
final
contentLength int?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
isRedirect bool?
final
persistentConnection bool?
final
reasonPhrase String?
final
request RestRequest
final
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.
inherited

Operators

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