vert-x3 / vertx-4-migration-guide

Migration to Vert.x 4 guide
https://vert-x3.github.io/vertx-4-migration-guide/index.html
20 stars 16 forks source link

The get, post, put method aren't present in HttpClient in Vert.x 4.0.0 #46

Closed akoniar closed 3 years ago

akoniar commented 3 years ago

@sangeetaraghu In this section HTTP client request and response methods take an asynchronous handler as input argument you mentioning that get, put ... methods have present in HttpClient but since Vert.x 4.0.0. these method has been replaced with request(HttpMethod, ...)

Screenshot 2020-12-07 at 22 37 45
akoniar commented 3 years ago

@sangeetaraghu It more like example from vert.x 3.x.x

sangeetaraghu commented 3 years ago

PR: https://github.com/vert-x3/vertx-4-migration-guide/pull/47

@akoniar As discussed, updated the section in bold:

The following examples show how to send a request in {VertX} {v3x}.

In {VertX} {v4}, you can use the HttpClientRequest.request() methods to create an HttpClientRequest instance. These methods can be used in basic interactions such as: