Represents an HTTP response
| Type | Name and description |
|---|---|
java.nio.charset.Charset |
charset |
io.reactivex.netty.protocol.http.client.HttpClientResponse |
nettyResponse |
| Constructor and description |
|---|
HttpClientResponse
(io.reactivex.netty.protocol.http.client.HttpClientResponse nettyResponse) |
HttpClientResponse
(io.reactivex.netty.protocol.http.client.HttpClientResponse nettyResponse, java.lang.String encoding) |
HttpClientResponse
(io.reactivex.netty.protocol.http.client.HttpClientResponse nettyResponse, java.nio.charset.Charset charset) |
| Type | Name and description |
|---|---|
java.util.Observable |
getBody() |
java.lang.String |
getHeader(java.lang.String name)Obtain a value of a header |
java.util.Set<java.lang.String> |
getHeaderNames()@return The header names |
HttpStatus |
getStatus()@return The returned http status object |
int |
getStatusCode()@return The status code of the response |
java.lang.String |
getStatusReason()@return The reason message |
java.lang.String |
header(java.lang.String name)Obtain a value of a header |
java.util.Observable |
toJson()@return The JSON representation of the response body |
java.lang.String |
toString() |
java.util.Observable<java.lang.String> |
toText(java.nio.charset.Charset charset = this.charset) |
java.util.Observable<groovy.util.slurpersupport.GPathResult> |
toXml()@return An XML representation for the response body |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Obtain a value of a header
name - The header name
Obtain a value of a header
name - The header name