Class HttpAsyncClients


  • public final class HttpAsyncClients
    extends java.lang.Object
    Factory methods for CloseableHttpAsyncClient instances.
    Since:
    5.0
    • Constructor Detail

      • HttpAsyncClients

        private HttpAsyncClients()
    • Method Detail

      • createMinimalProtocolProcessor

        private static org.apache.hc.core5.http.protocol.HttpProcessor createMinimalProtocolProcessor()
      • createMinimal

        public static MinimalHttpAsyncClient createMinimal​(org.apache.hc.core5.http2.config.H2Config h2Config,
                                                           org.apache.hc.core5.http.config.Http1Config h1Config,
                                                           org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
                                                           AsyncClientConnectionManager connmgr)
        Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
        Since:
        5.2
      • createMinimal

        @Deprecated
        public static MinimalHttpAsyncClient createMinimal​(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy,
                                                           org.apache.hc.core5.http2.config.H2Config h2Config,
                                                           org.apache.hc.core5.http.config.Http1Config h1Config,
                                                           org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
        Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
      • createMinimal

        public static MinimalHttpAsyncClient createMinimal​(org.apache.hc.core5.http2.config.H2Config h2Config,
                                                           org.apache.hc.core5.http.config.Http1Config h1Config,
                                                           org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
        Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
      • createMinimal

        public static MinimalHttpAsyncClient createMinimal​(org.apache.hc.core5.http2.config.H2Config h2Config,
                                                           org.apache.hc.core5.http.config.Http1Config h1Config)
        Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
      • createMinimalHttp2AsyncClientImpl

        private static MinimalH2AsyncClient createMinimalHttp2AsyncClientImpl​(org.apache.hc.core5.reactor.IOEventHandlerFactory eventHandlerFactory,
                                                                              AsyncPushConsumerRegistry pushConsumerRegistry,
                                                                              org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
                                                                              DnsResolver dnsResolver,
                                                                              org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
      • createHttp2Minimal

        public static MinimalH2AsyncClient createHttp2Minimal​(org.apache.hc.core5.http2.config.H2Config h2Config,
                                                              org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
                                                              DnsResolver dnsResolver,
                                                              org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
        Creates MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message transport without advanced HTTP protocol functionality.
      • createHttp2Minimal

        public static MinimalH2AsyncClient createHttp2Minimal​(org.apache.hc.core5.http2.config.H2Config h2Config,
                                                              org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
                                                              org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
        Creates MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message transport without advanced HTTP protocol functionality.
      • createHttp2Minimal

        public static MinimalH2AsyncClient createHttp2Minimal​(org.apache.hc.core5.http2.config.H2Config h2Config,
                                                              org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
        Creates MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message transport without advanced HTTP protocol functionality.
      • createHttp2Minimal

        public static MinimalH2AsyncClient createHttp2Minimal​(org.apache.hc.core5.http2.config.H2Config h2Config)
        Creates MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message transport without advanced HTTP protocol functionality.
      • createHttp2Minimal

        public static MinimalH2AsyncClient createHttp2Minimal()
        Creates MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message transport without advanced HTTP protocol functionality.