openapi-ts icon indicating copy to clipboard operation
openapi-ts copied to clipboard

Streaming HTTP query support

Open Karakatiza666 opened this issue 1 year ago • 3 comments

Description

I am using @hey-api/client-fetch client. I don't know if I'm missing something, but when I try to make a POST request that results in an HTTP stream (not SSE, just stream of data I'd like to read via requestResult.response.body : ReadableStream) the request's Promise doesn't resolve (apparently because it waits for stram to end - I can see via backend the connection is successfully established). When calling plain fetch this works as expected - request Promise resolves and I can read the body stream. Is there a solution/workaround currently for this?

Karakatiza666 avatar Aug 03 '24 07:08 Karakatiza666