rx.apache.http
Class ObservableHttpResponse

java.lang.Object
  extended by rx.apache.http.ObservableHttpResponse

public class ObservableHttpResponse
extends java.lang.Object

The HttpResponse for the entire request and accessor to Observable of the content stream.


Constructor Summary
ObservableHttpResponse(org.apache.http.HttpResponse response, rx.Observable<byte[]> contentSubscription)
           
 
Method Summary
 rx.Observable<byte[]> getContent()
          If the response is not chunked then only a single array will be returned.
 org.apache.http.HttpResponse getResponse()
          The HttpResponse returned by the Apache client at the beginning of the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservableHttpResponse

public ObservableHttpResponse(org.apache.http.HttpResponse response,
                              rx.Observable<byte[]> contentSubscription)
Method Detail

getResponse

public org.apache.http.HttpResponse getResponse()
The HttpResponse returned by the Apache client at the beginning of the response.

Returns:
HttpResponse with HTTP status codes, headers, etc

getContent

public rx.Observable<byte[]> getContent()
If the response is not chunked then only a single array will be returned. If chunked then multiple arrays.