Uses of Class
org.miaixz.bus.http.Httpd.Builder
Packages that use Httpd.Builder
Package
Description
An HTTP client for Java applications.
Provides a fluent, builder-based API (Httpz) for making HTTP requests, simplifying interactions with the core
Httpd client.-
Uses of Httpd.Builder in org.miaixz.bus.http
Methods in org.miaixz.bus.http that return Httpd.BuilderModifier and TypeMethodDescriptionHttpd.Builder.addInterceptor(Interceptor interceptor) Adds an application interceptor.Httpd.Builder.addNetworkInterceptor(Interceptor interceptor) Adds a network interceptor.Httpd.Builder.authenticator(Authenticator authenticator) Sets the authenticator used to respond to challenges from origin servers.Sets the cache to be used to read and write cached responses.Httpd.Builder.callTimeout(long timeout, TimeUnit unit) Sets the default timeout for complete calls.Httpd.Builder.callTimeout(Duration duration) Sets the default timeout for complete calls.Httpd.Builder.certificatePinner(CertificatePinner certificatePinner) Sets the certificate pinner that constrains which certificates are trusted.Httpd.Builder.connectionPool(ConnectionPool connectionPool) Sets the connection pool used to recycle HTTP and HTTPS connections.Httpd.Builder.connectionSpecs(List<ConnectionSuite> connectionSuites) Sets the connection specs for this client.Httpd.Builder.connectTimeout(long timeout, TimeUnit unit) Sets the default connect timeout for new connections.Httpd.Builder.connectTimeout(Duration duration) Sets the default connect timeout for new connections.Sets the cookie jar that will be used to manage cookies for all HTTP requests.Httpd.Builder.dispatcher(Dispatcher dispatcher) Sets the dispatcher used to execute asynchronous requests.Sets the DNS service used to lookup IP addresses for hostnames.Httpd.Builder.eventListener(EventListener eventListener) Sets the event listener for monitoring request lifecycle events.Httpd.Builder.eventListenerFactory(EventListener.Factory eventListenerFactory) Sets the factory for creating event listeners.Httpd.Builder.followRedirects(boolean followRedirects) Configures this client to follow redirects.Httpd.Builder.followSslRedirects(boolean followProtocolRedirects) Configures this client to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.Httpd.Builder.hostnameVerifier(HostnameVerifier hostnameVerifier) Sets the verifier used to confirm that response certificates apply to the requested hostnames for HTTPS connections.Httpd.newBuilder()Returns a new builder that is a copy of this client's configuration.Httpd.Builder.pingInterval(long interval, TimeUnit unit) Sets the WebSocket ping interval.Httpd.Builder.pingInterval(Duration duration) Sets the WebSocket ping interval.Sets the protocols used for requests.Sets the HTTP proxy that will be used by connections created by this client.Httpd.Builder.proxyAuthenticator(Authenticator proxyAuthenticator) Sets the authenticator used to respond to challenges from proxy servers.Httpd.Builder.proxySelector(ProxySelector proxySelector) Sets the proxy selector that will be used to select the HTTP proxy for each request.Httpd.Builder.readTimeout(long timeout, TimeUnit unit) Sets the default read timeout for new connections.Httpd.Builder.readTimeout(Duration duration) Sets the default read timeout for new connections.Httpd.Builder.retryOnConnectionFailure(boolean retryOnConnectionFailure) Configures this client to retry or not to retry when a connectivity problem is encountered.Httpd.Builder.socketFactory(SocketFactory socketFactory) Sets the socket factory used to create connections.Httpd.Builder.sslSocketFactory(SSLSocketFactory sslSocketFactory) Sets the SSL socket factory used to create HTTPS connections.Httpd.Builder.sslSocketFactory(SSLSocketFactory sslSocketFactory, X509TrustManager trustManager) Sets the SSL socket factory and trust manager used for HTTPS connections.Httpd.Builder.writeTimeout(long timeout, TimeUnit unit) Sets the default write timeout for new connections.Httpd.Builder.writeTimeout(Duration duration) Sets the default write timeout for new connections.Methods in org.miaixz.bus.http with parameters of type Httpd.BuilderModifier and TypeMethodDescriptionvoidHttpv.HttpvConfig.config(Httpd.Builder builder) Configures theHttpd.Builder.Constructors in org.miaixz.bus.http with parameters of type Httpd.BuilderModifierConstructorDescriptionHttpd(Httpd.Builder builder) Constructs a newHttpdinstance configured by the givenHttpd.Builder. -
Uses of Httpd.Builder in org.miaixz.bus.http.plugin.httpz
Methods in org.miaixz.bus.http.plugin.httpz that return Httpd.BuilderModifier and TypeMethodDescriptionHttpBuilder.getBuilder()Returns the underlyingHttpd.Builderfor advanced configuration.