Example usage for org.apache.http.nio.client.methods HttpAsyncMethods createConsumer

List of usage examples for org.apache.http.nio.client.methods HttpAsyncMethods createConsumer

Introduction

In this page you can find the example usage for org.apache.http.nio.client.methods HttpAsyncMethods createConsumer.

Prototype

public static HttpAsyncResponseConsumer<HttpResponse> createConsumer() 

Source Link

Document

Creates basic response consumer that will buffer response content in memory.

Usage

From source file:org.apache.http.impl.nio.client.AbstractHttpAsyncClient.java

@Override
public Future<HttpResponse> execute(final HttpHost target, final HttpRequest request, final HttpContext context,
        final FutureCallback<HttpResponse> callback) {
    return execute(HttpAsyncMethods.create(target, request), HttpAsyncMethods.createConsumer(), context,
            callback);/*from  w  w  w. j  av  a2s. co  m*/
}