Search in sources :

Example 11 with HpackParser

use of com.webpieces.hpack.api.HpackParser in project webpieces by deanhiller.

the class Http2ClientFactory method createHttpClient.

public static Http2Client createHttpClient(Http2Config config, ChannelManager mgr, BufferPool pool) {
    HpackParser hpackParser = HpackParserFactory.createParser(pool, false);
    InjectionConfig injConfig = new InjectionConfig(hpackParser, new TimeImpl(), config);
    return createHttpClient(config.getId(), mgr, injConfig);
}
Also used : HpackParser(com.webpieces.hpack.api.HpackParser) InjectionConfig(com.webpieces.http2engine.api.client.InjectionConfig) TimeImpl(org.webpieces.util.time.TimeImpl)

Aggregations

HpackParser (com.webpieces.hpack.api.HpackParser)11 InjectionConfig (com.webpieces.http2engine.api.client.InjectionConfig)11 Executor (java.util.concurrent.Executor)6 ChannelManager (org.webpieces.nio.api.ChannelManager)6 ChannelManagerFactory (org.webpieces.nio.api.ChannelManagerFactory)6 NamedThreadFactory (org.webpieces.util.threading.NamedThreadFactory)6 HttpParser (org.webpieces.httpparser.api.HttpParser)5 TimeImpl (org.webpieces.util.time.TimeImpl)4 Http2ServerEngineFactory (com.webpieces.http2engine.api.server.Http2ServerEngineFactory)3 SimpleMeterRegistry (io.micrometer.core.instrument.simple.SimpleMeterRegistry)3 TwoPools (org.webpieces.data.api.TwoPools)3 FrontEndServerManagerImpl (org.webpieces.frontend2.impl.FrontEndServerManagerImpl)3 Provides (com.google.inject.Provides)2 Http2Config (com.webpieces.http2engine.api.client.Http2Config)2 TimeImpl (com.webpieces.util.time.TimeImpl)2 Singleton (javax.inject.Singleton)2 SSLEngine (javax.net.ssl.SSLEngine)2 AsyncServerManager (org.webpieces.asyncserver.api.AsyncServerManager)2 BufferCreationPool (org.webpieces.data.api.BufferCreationPool)2 BufferPool (org.webpieces.data.api.BufferPool)2