GetHttpClient class
Constructors
-
GetHttpClient({String userAgent = 'getx-client', Duration timeout = const Duration(seconds: 8), bool followRedirects = true, int maxRedirects = 5, bool sendUserAgent = false, bool sendContentLength = true, int maxAuthRetries = 1, bool allowAutoSignedCert = false, String? baseUrl, List<TrustedCertificate>? trustedCertificates, bool withCredentials = false, String findProxy(Uri url)?, IClient? customClient})
-
Methods
-
addAuthenticator<T>(RequestModifier<T> auth)
→ void
-
-
addRequestModifier<T>(RequestModifier<T> interceptor)
→ void
-
-
addResponseModifier<T>(ResponseModifier<T> interceptor)
→ void
-
-
close()
→ void
-
-
createUri(String? url, Map<String, dynamic>? query)
→ Uri
-
-
delete<T>(String url, {String? contentType, Map<String, dynamic>? query, Decoder<T>? decoder, ResponseInterceptor<T>? responseInterceptor})
→ Future<Response<T>>
-
-
get<T>(String url, {String? contentType, Map<String, dynamic>? query, Decoder<T>? decoder, ResponseInterceptor<T>? responseInterceptor})
→ Future<Response<T>>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patch<T>(String url, {dynamic body, String? contentType, Map<String, dynamic>? query, Decoder<T>? decoder, ResponseInterceptor<T>? responseInterceptor, Progress? uploadProgress})
→ Future<Response<T>>
-
-
post<T>(String? url, {dynamic body, String? contentType, Map<String, dynamic>? query, Decoder<T>? decoder, ResponseInterceptor<T>? responseInterceptor, Progress? uploadProgress})
→ Future<Response<T>>
-
-
put<T>(String url, {dynamic body, String? contentType, Map<String, dynamic>? query, Decoder<T>? decoder, ResponseInterceptor<T>? responseInterceptor, Progress? uploadProgress})
→ Future<Response<T>>
-
-
removeRequestModifier<T>(RequestModifier<T> interceptor)
→ void
-
-
removeResponseModifier<T>(ResponseModifier<T> interceptor)
→ void
-
-
request<T>(String url, String method, {dynamic body, String? contentType, Map<String, dynamic>? query, Decoder<T>? decoder, ResponseInterceptor<T>? responseInterceptor, Progress? uploadProgress})
→ Future<Response<T>>
-
-
send<T>(Request<T> request)
→ Future<Response<T>>
-
-
toString()
→ String
-
A string representation of this object.
inherited