-
Notifications
You must be signed in to change notification settings - Fork 65
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
Fix the ability to disable buffering #509
Changes from all commits
5e29271
c58a509
63a1771
75d4ab4
6234918
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,15 @@ namespace Microsoft.AspNetCore.SystemWebAdapters.Features; | |
[Experimental(Constants.ExperimentalFeatures.DiagnosticId)] | ||
public interface IHttpResponseBufferingFeature | ||
{ | ||
void EnableBuffering(int memoryThreshold, long? bufferLimit); | ||
void EnableBuffering(int? memoryThreshold = default, long? bufferLimit = default); | ||
|
||
ValueTask FlushAsync(); | ||
|
||
[AllowNull] | ||
Stream Filter { get; set; } | ||
|
||
void DisableBuffering(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding this member to the interface is of course also a breaking change. Do we expect this to cause any issues? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above: this interface is intentionally marked as "Experimental" so we can break it as much as we need |
||
|
||
bool IsEnabled { get; } | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need the defaults and nullable changes here? Trying to see if we can avoid being binary breaking here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it makes it easier to just enable buffering when we want the default and the default value is currently in a different layer than I wanted to call it from.
This interface is intentionally marked as "Experimental" so we can break it as much as we need