reverse_proxy_plug icon indicating copy to clipboard operation
reverse_proxy_plug copied to clipboard

Investigate restoring streaming request body through to upstream

Open mwhitworth opened this issue 2 years ago • 0 comments

This functionality was effectively removed to fix #175 - the new version of this functionality should fulfil two requirements:

  • it should be tested to work with each adapter - {:stream, _} as a input value for the upstream body was supported by HTTPoison, but it was unclear (and untested) whether this was supported by the Tesla adapter at all
  • as #175, we need to forward conn whenever we use Plug.Conn.read_body - but that seems to be at odds with passing in a stream to the library. Perhaps Stream.resource, and sending the latest conn to ourselves?

mwhitworth avatar Feb 24 '24 13:02 mwhitworth