HttpRequestDS class
Data source for making http requests
Constructors
- HttpRequestDS.new(Client _client)
- create new instance of HttpRequestDS
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
-
delete(
{required Uri url, required dynamic headers}) → Future< Response> -
get(
{required Uri url, dynamic headers}) → Future< Response> -
head(
{required Uri url, dynamic headers}) → Future< Response> -
jsonRequest(
String url) → Future< Map< String, dynamic> > - make a get request to the given url
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
{required Uri url, required Uint8List body, required dynamic headers}) → Future< Response> -
put(
{required Uri url, required Object body, required dynamic headers}) → Future< Response> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited