Skip to content

How to stream request without streaming response? #849

@tomekowal

Description

@tomekowal

The hackney:body removed in version 3 is still mentioned:

The guide suggests using removed hackney.body to get response body.

%% 4. Get response headers
{ok, Status, RespHeaders, ConnPid} = hackney:start_response(ConnPid),

%% 5. Read response body
{ok, RespBody} = hackney:body(ConnPid),

However, hackney.body no longer exists. Is there an alternative way to get the entire response body (without streaming) from the PID (after request streaming)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions