Package org.mockserver.client
Class NettyHttpClient
- java.lang.Object
-
- org.mockserver.client.NettyHttpClient
-
public class NettyHttpClient extends Object
-
-
Constructor Summary
Constructors Constructor Description NettyHttpClient(MockServerLogger mockServerLogger, io.netty.channel.EventLoopGroup eventLoopGroup, ProxyConfiguration proxyConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.SettableFuture<HttpResponse>
sendRequest(HttpRequest httpRequest)
HttpResponse
sendRequest(HttpRequest httpRequest, long timeout, TimeUnit unit)
com.google.common.util.concurrent.SettableFuture<HttpResponse>
sendRequest(HttpRequest httpRequest, InetSocketAddress remoteAddress)
com.google.common.util.concurrent.SettableFuture<HttpResponse>
sendRequest(HttpRequest httpRequest, InetSocketAddress remoteAddress, Integer connectionTimeoutMillis)
-
-
-
Constructor Detail
-
NettyHttpClient
public NettyHttpClient(MockServerLogger mockServerLogger, io.netty.channel.EventLoopGroup eventLoopGroup, ProxyConfiguration proxyConfiguration)
-
-
Method Detail
-
sendRequest
public com.google.common.util.concurrent.SettableFuture<HttpResponse> sendRequest(HttpRequest httpRequest) throws SocketConnectionException
- Throws:
SocketConnectionException
-
sendRequest
public com.google.common.util.concurrent.SettableFuture<HttpResponse> sendRequest(HttpRequest httpRequest, @Nullable InetSocketAddress remoteAddress) throws SocketConnectionException
- Throws:
SocketConnectionException
-
sendRequest
public com.google.common.util.concurrent.SettableFuture<HttpResponse> sendRequest(HttpRequest httpRequest, @Nullable InetSocketAddress remoteAddress, Integer connectionTimeoutMillis) throws SocketConnectionException
- Throws:
SocketConnectionException
-
sendRequest
public HttpResponse sendRequest(HttpRequest httpRequest, long timeout, TimeUnit unit)
-
-