Search in sources :

Example 1 with Http2ClientProxy

use of org.webpieces.httpclientx.impl.Http2ClientProxy in project webpieces by deanhiller.

the class Http2to11ClientFactory method createHttpClient.

public static Http2Client createHttpClient(String id, ChannelManager mgr, MeterRegistry metrics, BufferPool pool, boolean optimizeForBufferPool) {
    HttpParser parser = HttpParserFactory.createParser(id, metrics, pool, optimizeForBufferPool);
    HttpClient client11 = HttpClientFactory.createHttpClient(id, mgr, parser);
    return new Http2ClientProxy(client11);
}
Also used : HttpClient(org.webpieces.httpclient11.api.HttpClient) HttpParser(org.webpieces.httpparser.api.HttpParser) Http2ClientProxy(org.webpieces.httpclientx.impl.Http2ClientProxy)

Aggregations

HttpClient (org.webpieces.httpclient11.api.HttpClient)1 Http2ClientProxy (org.webpieces.httpclientx.impl.Http2ClientProxy)1 HttpParser (org.webpieces.httpparser.api.HttpParser)1