HttpClient class

Implemented types

Constructors

HttpClient({required String baseUrl})

Properties

baseUrl String
final
client → Client
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String url, {required Map<String, dynamic> headers, Map<String, String>? queryParameters}) Future<HttpResponse>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String url, {required Map<String, dynamic> headers, required Map<String, dynamic> body, Map<String, String>? queryParameters}) Future<HttpResponse>
override
put(String url, {required Map<String, dynamic> headers, required Map<String, dynamic> body, Map<String, String>? queryParameters}) Future<HttpResponse>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited