HttpService class
Constructors
- HttpService({required String baseUrl})
Properties
Methods
-
defineHeader(
{required String header, required String value}) → void -
destroy(
{required String url, Map< String, String> ? headers}) → Future<Response> -
get(
{required String url, Map< String, String> ? headers}) → Future<Response> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch(
{required String url, required dynamic payload, Map< String, String> ? headers}) → Future<Response> -
post(
{required String url, required dynamic payload, Map< String, String> ? headers}) → Future<Response> -
put(
{required String url, required dynamic payload, Map< String, String> ? headers}) → Future<Response> -
removeHeader(
String header) → void -
responseWrapper<
T> (Response response) → Response -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited