vertx / io.vertx.rxjava.ext.web.client

Package io.vertx.rxjava.ext.web.client

Types

HttpResponse

open class HttpResponse<T : Any>

An HTTP response.

The usual HTTP response attributes are available:

The body of the response is returned by io.vertx.rxjava.ext.web.client.HttpResponse#body decoded as the format specified by the that built the response.

Keep in mind that using this HttpResponse impose to fully buffer the response body and should be used for payload that can fit in memory.

NOTE: This class has been automatically generated from the io.vertx.ext.web.client.HttpResponse non RX-ified interface using Vert.x codegen.

WebClient

open class WebClient

An asynchronous HTTP / HTTP/2 client called WebClient.

The web client makes easy to do HTTP request/response interactions with a web server, and provides advanced features like:

  • Json body encoding / decoding
  • request/response pumping
  • error handling

The web client does not deprecate the , it is actually based on it and therefore inherits its configuration and great features like pooling. The HttpClient should be used when fine grained control over the HTTP requests/response is necessary.

NOTE: This class has been automatically generated from the io.vertx.ext.web.client.WebClient non RX-ified interface using Vert.x codegen.