SyncHttpClientRequest class
HTTP request for a synchronous client connection.
Properties
- contentLength → int
-
The length of the request body. Is set to
-1
when no body exists.no setter - encoding → Encoding
-
The default encoding for the HTTP request (UTF8).
final
- hasBody → bool
-
Specifies whether or not the HTTP request has a body.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → HttpHeaders
-
The headers associated with the HTTP request.
no setter
- method → String
-
The type of HTTP request being made.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
The Uri the HTTP request will be sent to.
final
Methods
-
close(
) → SyncHttpClientResponse - Send the HTTP request and get the response.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
Object? obj) → void - Write content into the body of the HTTP request.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited