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.




hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


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


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

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.