Example usage for org.apache.http.nio.protocol AbstractAsyncResponseConsumer subclass-usage

List of usage examples for org.apache.http.nio.protocol AbstractAsyncResponseConsumer subclass-usage

Introduction

In this page you can find the example usage for org.apache.http.nio.protocol AbstractAsyncResponseConsumer subclass-usage.

Usage

From source file rx.apache.http.consumers.ResponseConsumerDelegate.java

/**
 * AbstractAsyncResponseConsumer that chooses different implementations based on return headers.
 * <p>
 * <ul>
 * <li>Content-Type:text/event-stream == {@link ResponseConsumerEventStream}</li>
 * <li>All others == {@link ResponseConsumerBasic}</li>

From source file rx.apache.http.consumers.ResponseConsumerChunked.java

/**
 * {@link HttpAsyncResponseConsumer} for Transfer-Encoding:chunked
 * <p>
 * It will emit a byte[] via {@link Observer#onNext} for each non-empty line.
 */
class ResponseConsumerChunked extends AbstractAsyncResponseConsumer<HttpResponse> implements ResponseDelegate {

From source file org.elasticsearch.client.HeapBufferedAsyncResponseConsumer.java

/**
 * Default implementation of {@link org.apache.http.nio.protocol.HttpAsyncResponseConsumer}. Buffers the whole
 * response content in heap memory, meaning that the size of the buffer is equal to the content-length of the response.
 * Limits the size of responses that can be read based on a configurable argument. Throws an exception in case the entity is longer
 * than the configured buffer limit.
 */