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

feat: add stream that rate limits response streams. #17

Merged
merged 1 commit into from
May 27, 2022

Conversation

skwasjer
Copy link
Owner

Usage:

Stream stream = ...; // A big stream

mockHttpHandler
    .When(matching => ...)
    .Respond(new RateLimitedStream(stream, 512000)); // Rate limited to 512 kbps

@codecov-commenter
Copy link

codecov-commenter commented May 27, 2022

Codecov Report

Merging #17 (97c0456) into main (486f762) will increase coverage by 0.37%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
src/MockHttp/IO/RateLimitedStream.cs 100.00% <100.00%> (ø)

@skwasjer skwasjer merged commit 58b2183 into main May 27, 2022
@skwasjer skwasjer deleted the feature/rate_limited_stream branch May 27, 2022 00:23
@skwasjer skwasjer added the enhancement New feature or request label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants