SyncHttpClientResponse class Null safety

HTTP response for a client connection.

Constructors

SyncHttpClientResponse(RawSynchronousSocket socket)
Creates an instance of SyncHttpClientResponse that contains the response sent by the HTTP server over socket.
factory

Properties

body String?
The body of the HTTP response.
final
contentLength int
The length of the body associated with the HTTP response.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
headers HttpHeaders
The headers associated with the HTTP response.
final
reasonPhrase String?
A short textual description of the status code associated with the HTTP response.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
statusCode int?
The resulting HTTP status code associated with the HTTP response.
final

Methods

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

Operators

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