/ APIs

Fluent HttpClient for APIs

The new HttpClient provides a fluent interface that is quite intuitive. However, any non-trivial implementation soon starts to miss the flexibility of configuring the connection manager. As a pre-configured HttpClient can be passed into the fluent Executor, it is not necessary to configure it each time.

posted at http://java.dzone.com/tips/fluency-and-control-httpclient