Example usage for Java io.vertx.core.http HttpClientRequest fields, constructors, methods, implement or subclass
The text is from its open source code.
String | absoluteURI() |
HttpConnection | connection() |
HttpClientRequest | continueHandler(@Nullable Handler If you send an HTTP request with the header Expect set to the value 100-continue and the server responds with an interim HTTP response with a status code of 100 and a continue handler has been set using this method, then the handler will be called. |
Future | end(String chunk) Same as #end(Buffer) but writes a String in UTF-8 encoding |
Future | end(Buffer chunk) Same as #end() but writes some data to the request body before ending. |
void | end(Handler Same as #end() but with an handler called when the operation completes |
Future | end() Ends the request. |
void | end(String chunk, Handler Same as #end(String) but with an handler called when the operation completes |
Future | end(String chunk, String enc) Same as #end(Buffer) but writes a String with the specified encoding |
void | end(Buffer chunk, Handler Same as #end(String) but with an handler called when the operation completes |
HttpClientRequest | exceptionHandler(Handler |
MultiMap | headers() |
boolean | isChunked() |
HttpMethod | method() The HTTP method for the request. |
String | path() |
HttpClientRequest | pushHandler(Handler Set a push handler for this request. The handler is called when the client receives a push promise from the server. |
HttpClientRequest | putHeader(String name, String value) Put an HTTP header |
HttpClientRequest | putHeader(CharSequence name, CharSequence value) Like #putHeader(String,String) but using CharSequence |
HttpClientRequest | putHeader(String name, Iterable Put an HTTP header with multiple values |
HttpClientRequest | putHeader(CharSequence name, Iterable Like #putHeader(String,Iterable) but using CharSequence |
String | query() |
boolean | reset() Reset this stream with the error code 0 . |
boolean | reset(long code) Reset this request:
|
Future | sendHead() Forces the head of the request to be written before #end() is called on the request or any data is written to it. |
HttpClientRequest | setChunked(boolean chunked) If chunked is true then the request will be set into HTTP chunked mode |
HttpClientRequest | setFollowRedirects(boolean followRedirects) Set the request to follow HTTP redirects up to HttpClientOptions#getMaxRedirects() . |
HttpClientRequest | setHost(String host) Set the request host. For HTTP/2 it sets the :authority pseudo header otherwise it sets the Host header |
HttpClientRequest | setRawMethod(String method) Set the value the method to send when the method HttpMethod#OTHER is used. |
HttpClientRequest | setTimeout(long timeoutMs) Set's the amount of time after which if the request does not return any data within the timeout period an java.util.concurrent.TimeoutException will be passed to the exception handler (if provided) and the request will be closed. |
String | uri() |
Future | write(String chunk) Write a String to the request body, encoded as UTF-8. |
HttpClientRequest | writeCustomFrame(int type, int flags, Buffer payload) Write an HTTP/2 frame to the request, allowing to extend the HTTP/2 protocol. The frame is sent immediatly and is not subject to flow control. This method must be called after the request headers have been sent and only for the protocol HTTP/2. |