SyncHttpClient class abstract
A simple synchronous HTTP client.
This is a two-step process. When a SyncHttpClientRequest is returned the underlying network connection has been established, but no data has yet been sent. The HTTP headers and body can be set on the request, and close is called to send it to the server and get the SyncHttpClientResponse.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
deleteUrl(
Uri uri) → SyncHttpClientRequest - Send a DELETE request to the provided URL.
-
getUrl(
Uri uri) → SyncHttpClientRequest - Send a GET request to the provided URL.
-
postUrl(
Uri uri) → SyncHttpClientRequest - Send a POST request to the provided URL.
-
putUrl(
Uri uri) → SyncHttpClientRequest - Send a PUT request to the provided URL.