SyncHttpClientRequest class Null safety
HTTP request for a synchronous client connection.
Properties
- contentLength → int
-
The length of the request body. Is set to
-1
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
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- headers → HttpHeaders
-
The headers associated with the HTTP request.
read-only
- method → String
-
The type of HTTP request being made.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- 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 non-existent 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