HttpResponse class final

Represents an HTTP response.

Inheritance
  • Object
  • ProtoMessage
  • HttpResponse

Constructors

HttpResponse({int status = 0, String reason = '', List<HttpHeader> headers = const [], Uint8List? body})
HttpResponse.fromJson(Map<String, dynamic> json)
factory

Properties

body Uint8List?
The HTTP response body. If the body is not expected, it should be empty.
final
hashCode int
The hash code for this object.
no setterinherited
headers List<HttpHeader>
The HTTP response headers. The ordering of the headers is significant. Multiple headers with the same key may present for the response.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
reason String
The HTTP reason phrase, such as "OK" or "Not Found".
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
The HTTP status code, such as 200 or 404.
final

Methods

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

Operators

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

Constants

fullyQualifiedName → const String