When httpc:request/5 is used with {stream, Self}, the initial message is:
{http, {RequestId, stream_start, Headers}}
It does not include the actual HTTP status. This makes it impossible for a streaming client to distinguish responses such as 200 and 206, or to expose a structured response head before consuming body chunks.
Could httpc provide the status alongside the headers, either through a backwards-compatible option or a new streaming event shape? For example:
{http, {RequestId, stream_start, Status, Headers}}
When
httpc:request/5is used with{stream, Self}, the initial message is:{http, {RequestId, stream_start, Headers}}It does not include the actual HTTP status. This makes it impossible for a streaming client to distinguish responses such as
200and206, or to expose a structured response head before consuming body chunks.Could
httpcprovide the status alongside the headers, either through a backwards-compatible option or a new streaming event shape? For example:{http, {RequestId, stream_start, Status, Headers}}