public class FlatResponseOperator<T> extends java.lang.Object implements rx.Observable.Operator<ResponseHolder<T>,HttpClientResponse<T>>
HttpClientResponse
containing aggregated responses i.e. which does not
have multiple HTTP chunks. This operator simplifies the handling of such a responses by flattening the content
Observable
into a single element producing a ResponseHolder
object.
See related issue for details.Constructor and Description |
---|
FlatResponseOperator() |
Modifier and Type | Method and Description |
---|---|
rx.Subscriber<? super HttpClientResponse<T>> |
call(rx.Subscriber<? super ResponseHolder<T>> child) |
static <T> FlatResponseOperator<T> |
flatResponse() |
public static <T> FlatResponseOperator<T> flatResponse()
public rx.Subscriber<? super HttpClientResponse<T>> call(rx.Subscriber<? super ResponseHolder<T>> child)
call
in interface rx.functions.Func1<rx.Subscriber<? super ResponseHolder<T>>,rx.Subscriber<? super HttpClientResponse<T>>>