HttpService class

Constructors

HttpService({required String baseUrl})

Properties

baseUrl String
getter/setter pair
container ↔ Ioc
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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