Package org.apache.juneau.rest.client
Interface HttpTransportBuilder
public interface HttpTransportBuilder
A builder interface for configuring and creating
HttpTransport instances.
Transport modules (Apache HC, Java HTTP Client, OkHttp, etc.) implement this interface to expose their
configuration options in a transport-agnostic way. The built transport is then passed to
RestClient.Builder.transport(HttpTransport).
Example usage:
See Also:
- Since:
- 9.2.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a configuredHttpTransportinstance.
-
Method Details
-
build
Builds and returns a configuredHttpTransportinstance.- Returns:
- A new transport. Never
null .
-