Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multipart streaming bodies in HttpClient based backends #2466

Merged
merged 11 commits into from
Mar 3, 2025

Conversation

Kamil-Lontkowski
Copy link
Contributor

@Kamil-Lontkowski Kamil-Lontkowski commented Feb 26, 2025

Closes #2407

@Kamil-Lontkowski Kamil-Lontkowski changed the title support multipart streaming bodies in HttpClient based backends Support multipart streaming bodies in HttpClient based backends Feb 26, 2025
@Kamil-Lontkowski Kamil-Lontkowski force-pushed the HttpClient-streaming-multipart-bodies branch from 319f8bd to 63a08c6 Compare February 26, 2025 17:47
@Kamil-Lontkowski Kamil-Lontkowski force-pushed the HttpClient-streaming-multipart-bodies branch from de22804 to dbb731f Compare February 27, 2025 11:47
@Kamil-Lontkowski Kamil-Lontkowski force-pushed the HttpClient-streaming-multipart-bodies branch from d0240d9 to 840fd28 Compare February 27, 2025 15:31
@Kamil-Lontkowski Kamil-Lontkowski marked this pull request as ready for review March 3, 2025 12:46
@Kamil-Lontkowski Kamil-Lontkowski requested a review from adamw March 3, 2025 12:46
@Kamil-Lontkowski
Copy link
Contributor Author

For now monix and zio1 backends have disabled streaming. With zio1 problem was with reading file because it produced ZStream[blocking ...] and not any. Monix tests keep failing in CI but I can't reproduce it locally.


def toPublisher(stream: BinaryStream): F[HttpRequest.BodyPublisher]

override def multipartBodyPublisher(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe let's just call the method apply? the repetition doesn't give much more additional info

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@adamw adamw merged commit af6bf84 into master Mar 3, 2025
19 checks passed
@adamw adamw deleted the HttpClient-streaming-multipart-bodies branch March 3, 2025 16:35
@adamw
Copy link
Member

adamw commented Mar 3, 2025

Great, done! :)

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.

Add support for streaming multipart bodies to the default HttpClient-based backend
2 participants