SyncHttpClient class

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

SyncHttpClient()

Properties

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

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

Static Methods

deleteUrl(dynamic uri) SyncHttpClientRequest
Send a DELETE request to the provided URL.
getUrl(Uri uri) SyncHttpClientRequest
Send a GET request to the provided URL.
postUrl(dynamic uri) SyncHttpClientRequest
Send a POST request to the provided URL.
putUrl(dynamic uri) SyncHttpClientRequest
Send a PUT request to the provided URL.