an optional mutation that may be applied to every line of the body content.
Gets the request body.
Gets the request body.
the request body which will be a low-footprint streaming implementation by default. However, it is possible to access the body by first caching it, e.g.
val adapter = new HttpServletRequestAdapter(req) val body = adapter.requestBody.cachedBody println(body.asString) val request = Request.post(url, Some(body)) ...
Adapts HTTP Servlet request objects to the Light Http Client API. This allows a variety of solutions such as reverse proxying to be implemented easily.
(Since version 0.25.1) This will be removed from future versions.