Http class Null safety

Inheritance

Constructors

Http({required String baseUrl})

Properties

baseUrl String
read / write
container Ioc
read / write, inherited
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

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 non-existent 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