HttpClient class
An internal helper class for easier http request management
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
-
httpGet(
Uri url) → Future -
HTTP get method
url
request url with query string (required) -
httpMultipartPost(
Uri url, List< MultipartFile> files, {Map<String, dynamic> ? body}) → Future -
HTTP post method (multipart/form-data)
url
- request url (required)file
- file to upload (required)body
- parameters in map -
httpPost(
Uri url, {Map< String, dynamic> ? body}) → Future -
HTTP post method (x-www-form-urlencoded)
url
- request url (required)body
- parameters in map -
toMultiPartFile(
File file, String fieldName) → MultipartFile