Closed akoniar closed 3 years ago
@sangeetaraghu It more like example from vert.x 3.x.x
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}.
To perform a GET operation:
To POST with a buffer body:
To POST with a streaming body:
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:
@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, ...)