bad.robot.http
Interface CommonHttpClient
- All Superinterfaces:
- HttpClient
public interface CommonHttpClient
- extends HttpClient
The common configuration interface for all HttpClient
implementations.
Clients may or may not implement the various configuration parameters and they may or may not take affect after actual
HttpClient
calls. For example, you might set a timeout using the with(HttpTimeout)
and then call the HttpClient.get(java.net.URL)
to perform a HTTP GET. The underlying HTTP client implementation
should respect the timeout configuration but is free to ignore subsequent calls to set the timeout (ie, implementations
may choose to lazy load the underlying client).
with
CommonHttpClient with(AuthorisationCredentials credentials)
withoutSsl
CommonHttpClient withoutSsl()
withTrustingSsl
CommonHttpClient withTrustingSsl()
with
CommonHttpClient with(AutomaticRedirectHandling handleRedirects)
with
CommonHttpClient with(Proxy proxy)
with
CommonHttpClient with(HttpTimeout timeout)
Copyright © 2012. All Rights Reserved.