SyncHttpClientRequest class

HTTP request for a synchronous client connection.

Properties

contentLength int
The length of the request body. Is set to null when no body exists.
read-only
encoding Encoding
The default encoding for the HTTP request (UTF8).
final
hasBody bool
Specifies whether or not the HTTP request has a body.
read-only
headers HttpHeaders
The headers associated with the HTTP request.
read-only
method String
The type of HTTP request being made.
final
uri Uri
The Uri the HTTP request will be sent to.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() SyncHttpClientResponse
Send the HTTP request and get the response.
write(Object obj) → void
Write content into the body of the HTTP request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited