HttpService<T extends Client> class Get started Configuration Services

A service that uses client for making requests. It is recommend to extend this class and add your method and use the client to make requests in the methods to the server.

Implementers

Constructors

HttpService(Client client, {WrapperClientBuilder<T>? builder})
Creates an http server class that uses client in its method to make http requests.
HttpService.fromConfig(HttpServiceConfig<T> config)

Properties

client → T
no setter
config HttpServiceConfig<T>
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

buildClient(HttpServiceConfig<T> config) → T
dispose({bool keepHttpClientAlive = false}) → void
Closes the service and cleans up any resources associated with it. It is important to call dispose() to release any resources that are being used by this REST service, such as the HTTP client.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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