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 CompletableFuture<HttpResponse>
sendRequest(HttpRequest httpRequest)
HttpResponse
sendRequest(HttpRequest httpRequest, long timeout, TimeUnit unit)
CompletableFuture<HttpResponse>
sendRequest(HttpRequest httpRequest, InetSocketAddress remoteAddress)
CompletableFuture<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 CompletableFuture<HttpResponse> sendRequest(HttpRequest httpRequest) throws SocketConnectionException
- Throws:
SocketConnectionException
-
sendRequest
public CompletableFuture<HttpResponse> sendRequest(HttpRequest httpRequest, @Nullable InetSocketAddress remoteAddress) throws SocketConnectionException
- Throws:
SocketConnectionException
-
sendRequest
public CompletableFuture<HttpResponse> sendRequest(HttpRequest httpRequest, @Nullable InetSocketAddress remoteAddress, Integer connectionTimeoutMillis) throws SocketConnectionException
- Throws:
SocketConnectionException
-
sendRequest
public HttpResponse sendRequest(HttpRequest httpRequest, long timeout, TimeUnit unit)
-
-