Skip to content

Pleroma.HTTP: support streaming response bodies

feld requested to merge pleroma-http-stream into develop

Gun and Finch support streaming the response bodies through Tesla. Unfortunately they have different adapter options to enable streaming:

Gun: opts: [adapter: [body_as: :stream]]

Finch: opts: [adapter: [response: :stream]]

Hackney implementation for streaming response bodies stalled out upstream, but I will keep an eye out for this to change. If I have time I may take a shot at finishing it myself.

We do not currently have an AdapterHelper for Finch so it will not be supported for Finch yet.

Streaming support is enabled by passing stream: true in the Pleroma.HTTP options

Merge request reports

Loading