SyncHttpClient class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


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

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.