Uses of Class
org.miaixz.bus.http.plugin.httpz.HttpBuilder
Packages that use HttpBuilder
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 HttpBuilder in org.miaixz.bus.http
Methods in org.miaixz.bus.http that return HttpBuilderModifier and TypeMethodDescriptionstatic HttpBuilderHttpz.newBuilder()Creates a newHttpBuilderinstance using the default client.static HttpBuilderHttpz.newBuilder(Httpd client) Creates a newHttpBuilderinstance using the specified client. -
Uses of HttpBuilder in org.miaixz.bus.http.plugin.httpz
Methods in org.miaixz.bus.http.plugin.httpz that return HttpBuilderModifier and TypeMethodDescriptionHttpBuilder.addInterceptor(Interceptor interceptor) Adds an application interceptor to this client.HttpBuilder.addNetworkInterceptor(Interceptor interceptor) Adds a network interceptor to this client.HttpBuilder.authenticator(Authenticator authenticator) Sets the authenticator used to respond to challenges from origin servers.Sets the response cache to be used by this client.HttpBuilder.certificatePinner(CertificatePinner certificatePinner) Sets the certificate pinner used to constrain which certificates are trusted.HttpBuilder.connectionPool(ConnectionPool connectPool) Sets the connection pool used to recycle HTTP and HTTPS connections.HttpBuilder.connectionSpecs(List<ConnectionSuite> connectSuites) Configures the connection specs used by this client.HttpBuilder.connectTimeout(long timeout, TimeUnit unit) Sets the default connect timeout for new connections.Sets the cookie handler for this client.HttpBuilder.dispatcher(Dispatcher dispatcher) Sets the dispatcher used to execute asynchronous requests.Sets the DNS service used to lookup IP addresses for hostnames.HttpBuilder.followRedirects(boolean followRedirects) Configures this client to follow redirects.HttpBuilder.followSslRedirects(boolean followProtocolRedirects) Configures this client to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.HttpBuilder.hostnameVerifier(HostnameVerifier hostnameVerifier) Sets the verifier used to confirm that response certificates apply to the requested hostnames.HttpBuilder.pingInterval(long interval, TimeUnit unit) Sets the ping interval for web socket connections.Configures the protocols used by this client.Sets the HTTP proxy that will be used by connections created by this client.HttpBuilder.proxyAuthenticator(Authenticator proxyAuthenticator) Sets the authenticator used to respond to challenges from proxy servers.HttpBuilder.proxySelector(ProxySelector proxySelector) Sets the proxy selection policy for this client.HttpBuilder.readTimeout(long timeout, TimeUnit unit) Sets the default read timeout for new connections.HttpBuilder.retryOnConnectionFailure(boolean retryOnConnectionFailure) Configures this client to retry or not retry IO failures.HttpBuilder.socketFactory(SocketFactory socketFactory) Sets the socket factory used to create connections.HttpBuilder.sslContext(SSLContext sslContext) A convenience method to configure a customSSLContext.HttpBuilder.sslSocketFactory(SSLSocketFactory sslSocketFactory) Deprecated.HttpBuilder.sslSocketFactory(SSLSocketFactory sslSocketFactory, X509TrustManager trustManager) Sets the SSL socket factory and trust manager used to secure HTTPS connections.HttpBuilder.writeTimeout(long timeout, TimeUnit unit) Sets the default write timeout for new connections.
sslSocketFactory(SSLSocketFactory, X509TrustManager)instead.