Package io.odilon.client.http
Class HttpResponse
- java.lang.Object
-
- io.odilon.client.http.HttpResponse
-
public class HttpResponse extends Object
Packs
ResponseHeader
andResponse
into one object to pass/return in various methods
-
-
Constructor Summary
Constructors Constructor Description HttpResponse(ResponseHeader header, okhttp3.Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.ResponseBody
body()
ResponseHeader
header()
Map<String,List<String>>
httpHeaders()
okhttp3.Response
response()
-
-
-
Constructor Detail
-
HttpResponse
public HttpResponse(ResponseHeader header, okhttp3.Response response)
-
-
Method Detail
-
header
public ResponseHeader header()
-
body
public okhttp3.ResponseBody body()
-
response
public okhttp3.Response response()
-
-