Skip to content

Conversation

@kciesielski
Copy link
Member

@kciesielski kciesielski commented Nov 20, 2023

This addition introduces a limitBytes stream wrapper, which fails the stream if byte count exceeds given limit.
It was inspired by softwaremill/tapir#3056

With this operation available for multiple streaming implementations, we can enhance streaming body support in Tapir, so that many backends get support for limiting content length for individual endpoints.

Vertx and Armeria implementations are left for later.

Monix, fs2-ce2, and zio1 are left out, as these libraries are quite outdated anyway.

@kciesielski kciesielski changed the title Stream with limit Support for limiting streams (Pekko, Akka, fs2, zio-streams) Nov 21, 2023
@kciesielski kciesielski marked this pull request as ready for review November 21, 2023 11:32
@kciesielski kciesielski requested a review from adamw November 21, 2023 11:34
@kciesielski kciesielski merged commit 4596d53 into master Nov 22, 2023
@mergify mergify bot deleted the stream-with-limit branch November 22, 2023 08:52
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.

3 participants