HttpTextResponse class

Inheritance

Constructors

HttpTextResponse.new({required String? remoteIp, required HttpRequest request, required HttpVersion version, required int statusCode, required List<(String, String)> headers, required String body})
const

Properties

body String
final
bodyToJson → dynamic
Convenience method to parse the body as JSON.
no setter
hashCode int
The hash code for this object.
no setterinherited
headerMap Map<String, String>
Response headers converted as a map.
no setterinherited
headerMapList Map<String, List<String>>
Response headers converted as a map respecting multiple values.
no setterinherited
headers List<(String, String)>
The HTTP headers of this response.
finalinherited
remoteIp String?
The remote IP address of the server
finalinherited
request HttpRequest
The HTTP request that this response is associated with.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The HTTP status code of this response.
finalinherited
version HttpVersion
The HTTP version of this response.
finalinherited

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