build method

HttpRestClient build()

Call this method at the end of the HttpRestClient configuration to get the HttpRestClient's instance.

Implementation

HttpRestClient build() {
  // Add the tail middlewares.
  _client._requestOverrideMiddleware.addNext(Middleware());
  _client._responseMiddleware.addNext(Middleware());
  _client._requestMiddleware.addNext(Middleware());
  return _client;
}