Skip to content

Response body is not captured in apache async client if the body is not read in callback #248

Open
@pavolloffay

Description

@pavolloffay
    Future<HttpResponse> responseFuture = client.execute(request, null);
    HttpResponse response = responseFuture.get();
    if (response.getEntity() == null || response.getEntity().getContentLength() <= 0) {
      return Pair.of(response.getStatusLine().getStatusCode(), null);
    }
    String responseBody = readInputStream(response.getEntity().getContent());

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions