- java.lang.Object
-
- io.vertx.core.AbstractVerticle
-
- vertx.effect.VertxModule
-
- vertx.effect.core.AbstractHttpClientModule
-
- vertx.effect.httpclient.HttpClientModule
-
- All Implemented Interfaces:
io.vertx.core.Verticle
- Direct Known Subclasses:
OauthModule
public abstract class HttpClientModule extends AbstractHttpClientModule
Module that exposes a set of functions to send different requests to a server. It's created from aHttpClientOptions
instance. It's just another verticle that needs to be deployed. You can create as many as you want, with different configurations:HttpClientOptions server1Options = new HttpClientOptions(); HttpClientOptions server2Options = new HttpClientOptions(); HttpClientModule httpServer1Module = new HttpClientModule(server1Options); HttpClientModule httpServer2Module = new HttpClientModule(server2Options); vertx.deployVerticle(httpServer1Module); vertx.deployVerticle(httpServer2Module);
get
,post
,put
,delete
and so on.
-
-
Field Summary
Fields Modifier and Type Field Description λc<ConnectReq,jsonvalues.JsObj>
connect
represents a CONNECT request.λc<DeleteReq,jsonvalues.JsObj>
delete
represents a DELETE request.λc<GetReq,jsonvalues.JsObj>
get
represents a GET request.λc<HeadReq,jsonvalues.JsObj>
head
represents a HEAD request.λc<OptionsReq,jsonvalues.JsObj>
options
represents a OPTIONS request.λc<PatchReq,jsonvalues.JsObj>
patch
represents a PATCH request.λc<PostReq,jsonvalues.JsObj>
post
represents a POST request.λc<PutReq,jsonvalues.JsObj>
put
represents a PUT request.λc<TraceReq,jsonvalues.JsObj>
trace
represents a TRACE request.-
Fields inherited from class vertx.effect.core.AbstractHttpClientModule
httpClient, httpClientAddress, httpOptions
-
Fields inherited from class vertx.effect.VertxModule
deploymentOptions, vertxRef
-
-
Constructor Summary
Constructors Constructor Description HttpClientModule(io.vertx.core.http.HttpClientOptions options, String address)
-
Method Summary
-
Methods inherited from class vertx.effect.core.AbstractHttpClientModule
deploy, initialize
-
Methods inherited from class vertx.effect.VertxModule
ask, ask, deploy, deploy, deploy, deploy, deployConsumer, deployConsumer, deployVerticle, deployVerticle, start, tell, tell, trace, trace
-
-
-
-
Field Detail
-
options
public final λc<OptionsReq,jsonvalues.JsObj> options
represents a OPTIONS request. It takes as input aOptionsReq
instance and returns a response in a JsObj. The classHttpResp
contains all the lenses and functions to get info from the response and manipulate it
-
connect
public final λc<ConnectReq,jsonvalues.JsObj> connect
represents a CONNECT request. It takes as input aConnectReq
instance and returns a response in a JsObj. The classHttpResp
contains all the lenses and functions to get info from the response and manipulate it
-
-
Constructor Detail
-
HttpClientModule
public HttpClientModule(io.vertx.core.http.HttpClientOptions options, String address)
-
-