Skip to content

feat: reimplement request-stream with async Stream trait#20

Merged
jmjoy merged 2 commits intojmjoy:masterfrom
imgurbot12:feat/stream
Jul 15, 2025
Merged

feat: reimplement request-stream with async Stream trait#20
jmjoy merged 2 commits intojmjoy:masterfrom
imgurbot12:feat/stream

Conversation

@imgurbot12
Copy link
Contributor

@imgurbot12 imgurbot12 commented Jul 14, 2025

Hello! Love the library, however I ran into some issues passing the buffered output to an actix-web service primarily because the ResponseStream object did not implement the standard futures async Stream trait.

I saw that the implementation was delayed due to some previous issue but I thought I'd take a crack at an implementation and this one seems to work and pass all the existing tests as well as for my actix-web service's needs.

Hopefully this is of use to you and others using the library :)

Technical Details

Re-implements ResponseStream with Stream trait implementation.

Now uses StreamExt for .next function recommended in the existing documentation.

@imgurbot12 imgurbot12 force-pushed the feat/stream branch 2 times, most recently from 4fed908 to 79a552e Compare July 14, 2025 09:20
@imgurbot12 imgurbot12 changed the title feat: reimplement request-stream with async Stream stream feat: reimplement request-stream with async Stream trait Jul 14, 2025
@imgurbot12 imgurbot12 force-pushed the feat/stream branch 2 times, most recently from 7dca710 to a2dc34f Compare July 14, 2025 10:11
@imgurbot12
Copy link
Contributor Author

imgurbot12 commented Jul 14, 2025

Sorry about all the force pushes. I've never used verified signatures on commits before and was trying to figure it out lol. I finally managed it :)

@jmjoy jmjoy closed this Jul 14, 2025
@jmjoy jmjoy reopened this Jul 14, 2025
@jmjoy
Copy link
Owner

jmjoy commented Jul 14, 2025

Please merge the master branch; I just fixed the CI issue.

@imgurbot12
Copy link
Contributor Author

imgurbot12 commented Jul 14, 2025

Just rebased from master, sorry for delay.

@jmjoy jmjoy merged commit 370bec9 into jmjoy:master Jul 15, 2025
2 checks passed
@github-actions github-actions bot mentioned this pull request Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants