AdeptChopperClient class

Inheritance

Constructors

AdeptChopperClient({dynamic baseUrl: "", Client client, Iterable interceptors: const [], dynamic converter, dynamic errorConverter, Iterable<ChopperService> services: const []})

Properties

timeout ↔ Duration
read / write
baseUrl → String
Base url of each request to your api hostname of your api for example
final, inherited
converter Converter
Converter call before request interceptor and before interceptor of successful response
final, inherited
errorConverter ErrorConverter
Converter call on error request
final, inherited
hashCode → int
The hash code for this object.
read-only, inherited
httpClient Client
Http client used to do request from package:http/http.dart
final, inherited
onRequest → Stream<Request>
Event stream of request just before http call all converters and interceptors have been run
read-only, inherited
onResponse → Stream<Response>
Event stream of response all converters and interceptors have been run
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

send<Body, ToDecode>(Request request, {ConvertRequest requestConverter, ConvertResponse responseConverter}) → Future<Response<Body>>
Send request function that apply all interceptors and converters [...]
override
delete<BodyType, InnerType>(String url, {Map<String, String> headers, Map<String, dynamic> parameters, String baseUrl}) → Future<Response<BodyType>>
Http DELETE request using send function
inherited
dispose() → void
dispose ChopperClient to clean memory.
@mustCallSuper, inherited
get<BodyType, InnerType>(String url, {Map<String, String> headers, Map<String, dynamic> parameters, String baseUrl}) → Future<Response<BodyType>>
Http GET request using send function
inherited
getService<ServiceType extends ChopperService>() → ServiceType
Retrieve any service injected into the ChopperClient
inherited
Http Head request using send function
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
patch<BodyType, InnerType>(String url, {dynamic body, List<PartValue> parts, Map<String, String> headers, Map<String, dynamic> parameters, bool multipart, String baseUrl}) → Future<Response<BodyType>>
Http PATCH request using send function
inherited
post<BodyType, InnerType>(String url, {dynamic body, List<PartValue> parts, Map<String, String> headers, Map<String, dynamic> parameters, bool multipart, String baseUrl}) → Future<Response<BodyType>>
Http POST request using send function
inherited
put<BodyType, InnerType>(String url, {dynamic body, List<PartValue> parts, Map<String, String> headers, Map<String, dynamic> parameters, bool multipart, String baseUrl}) → Future<Response<BodyType>>
Http PUT request using send function
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited