http_rest_io
library
Classes
HttpRestRequest
This class represents the properties of rest request
it allows to configure request's method , URL path by url , headers ,
requestConverterType which will convert the HttpRestRequest to RowRequest ,
responseConverterType which will convert the RowResponse to HttpRestResponse ,
and request encoding .
HttpRestResponse
This class represents the response, get returned by HttpRestClient.execute method.
It contains the original request ,
the rowResponse instance of RowResponse , which contains all the response info, like
the response headers, code, body bytes, and more (see RowResponse ).
The response parameter is converted response, which get created by provided ResponseConverter ,
as an example the JsonToMapResponseConverter get the RowResponse.bodyBytes and convert them
to Map .
RowRequest
This class represents more row level of HttpRestRequest , which means it contains
the converted HttpRest request's body and initial request .
The rowBody get defined by the RequestConverter , for example the
MapToJsonRequestConverter converts the Map body to JSON String , and get
assigned to rowBody , then the converted JSON String file get used by RequestExecutor
RowResponse
This class represents the rest row response, which contains
original request , the response code , response body bytes bodyBytes ,
headers , contentLength , and more meta info related to response.
The instance of RowResponse get passed throughout to response middlewares
and then to provided to ResponseConverter from the HttpRestRequest 's instance.