HttpRestClientBuilder class

This class allows to config and build a HttpRestClient. Use HttpRestClient.builder method to build a client, HttpRestClientBuilder allows to add multiple request and response Middlewares, RequestConverters, ResponseConverters, also configure the client with a custom RequestExecutor.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRequestConverter(RequestConverter converter) HttpRestClientBuilder
Use this method to add request converters to HttpRestClient
addRequestMiddleware(Middleware<RowRequest> middleware) HttpRestClientBuilder
Use this method to add request middlewares to HttpRestClient
addRequestOverrideMiddleware(Middleware<HttpRestRequest> middleware) HttpRestClientBuilder
Use this method to add request override middlewares to HttpRestClient, Will override stream each request through provided middleware before passing it to requrest converter (@see addRequestConverter)
addResponseConverter(ResponseConverter converter) HttpRestClientBuilder
Use this method to add response converters to HttpRestClient
addResponseMiddleware(Middleware<RowResponse> middleware) HttpRestClientBuilder
Use this method to add response middlewares to HttpRestClient
build() HttpRestClient
Call this method at the end of the HttpRestClient configuration to get the HttpRestClient's instance.
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