Skip to content

hackney:send_body does not accept functions anymore #821

@tomekowal

Description

@tomekowal

Hi!

Thanks for the update to 2.x!

I have a question that is not covered by the migration guide.

According to the guide, in the streaming body scenario :hackney.send_body should not require any changes in the code https://hexdocs.pm/hackney/2.0.1/migration.html#streaming-request

However, up until 1.25, this function accepted function without any arguments that evaluated either to {:ok, body} | {:error, error} https://github.com/benoitc/hackney/blob/1.25.0/src/hackney_request.erl#L190

Is this something that was removed on purpose and should be part of the migration guide or is it an omission and should be added back?

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