-
-
Notifications
You must be signed in to change notification settings - Fork 442
hackney:send_body does not accept functions anymore #821
Copy link
Copy link
Closed
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels