public class NettyHttpClient extends Object
Constructor and Description |
---|
NettyHttpClient(MockServerLogger mockServerLogger,
io.netty.channel.EventLoopGroup eventLoopGroup,
ProxyConfiguration proxyConfiguration,
boolean forwardProxyClient) |
NettyHttpClient(MockServerLogger mockServerLogger,
io.netty.channel.EventLoopGroup eventLoopGroup,
ProxyConfiguration proxyConfiguration,
boolean forwardProxyClient,
NettySslContextFactory nettySslContextFactory) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<HttpResponse> |
sendRequest(HttpRequest httpRequest) |
CompletableFuture<HttpResponse> |
sendRequest(HttpRequest httpRequest,
InetSocketAddress remoteAddress) |
CompletableFuture<HttpResponse> |
sendRequest(HttpRequest httpRequest,
InetSocketAddress remoteAddress,
Integer connectionTimeoutMillis) |
HttpResponse |
sendRequest(HttpRequest httpRequest,
long timeout,
TimeUnit unit) |
public NettyHttpClient(MockServerLogger mockServerLogger, io.netty.channel.EventLoopGroup eventLoopGroup, ProxyConfiguration proxyConfiguration, boolean forwardProxyClient)
public NettyHttpClient(MockServerLogger mockServerLogger, io.netty.channel.EventLoopGroup eventLoopGroup, ProxyConfiguration proxyConfiguration, boolean forwardProxyClient, NettySslContextFactory nettySslContextFactory)
public CompletableFuture<HttpResponse> sendRequest(HttpRequest httpRequest) throws SocketConnectionException
SocketConnectionException
public CompletableFuture<HttpResponse> sendRequest(HttpRequest httpRequest, @Nullable InetSocketAddress remoteAddress) throws SocketConnectionException
SocketConnectionException
public CompletableFuture<HttpResponse> sendRequest(HttpRequest httpRequest, @Nullable InetSocketAddress remoteAddress, Integer connectionTimeoutMillis) throws SocketConnectionException
SocketConnectionException
public HttpResponse sendRequest(HttpRequest httpRequest, long timeout, TimeUnit unit)
Copyright © 2020. All rights reserved.