public class HttpClient extends Object
Constructor and Description |
---|
HttpClient(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
io.netty.handler.codec.http.FullHttpResponse |
sendChunkRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest) |
List<io.netty.handler.codec.http.FullHttpResponse> |
sendExpectContinueRequest(io.netty.handler.codec.http.DefaultHttpRequest httpRequest,
io.netty.handler.codec.http.DefaultLastHttpContent httpContent) |
String |
sendMultiplePipelinedRequests(String path)
Send pipelined requests to the server and do not expect a response hence a latch shouldn't be set in response
handler for channel read.
|
LinkedList<io.netty.handler.codec.http.FullHttpResponse> |
sendPipeLinedRequests(String path)
Send pipelined requests to the server.
|
io.netty.handler.codec.http.FullHttpResponse |
sendRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest) |
LinkedList<io.netty.handler.codec.http.FullHttpResponse> |
sendTwoInPipeline(io.netty.handler.codec.http.FullHttpRequest httpRequest) |
boolean |
waitForChannelClose() |
public HttpClient(String host, int port)
public io.netty.handler.codec.http.FullHttpResponse sendChunkRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest)
public io.netty.handler.codec.http.FullHttpResponse sendRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest)
public List<io.netty.handler.codec.http.FullHttpResponse> sendExpectContinueRequest(io.netty.handler.codec.http.DefaultHttpRequest httpRequest, io.netty.handler.codec.http.DefaultLastHttpContent httpContent)
public LinkedList<io.netty.handler.codec.http.FullHttpResponse> sendTwoInPipeline(io.netty.handler.codec.http.FullHttpRequest httpRequest)
public LinkedList<io.netty.handler.codec.http.FullHttpResponse> sendPipeLinedRequests(String path)
path
- Represents request pathpublic String sendMultiplePipelinedRequests(String path)
path
- Represents request pathpublic boolean waitForChannelClose()
Copyright © 2018 WSO2. All rights reserved.