Add HttpListenerResponse.HasStarted#445
Conversation
|
@CoryCharlton I've fixed the checklist for you. |
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
We are now deviating from the .NET implementation as this property does not exists: https://learn.microsoft.com/en-us/dotnet/api/system.net.httplistenerresponse?view=net-8.0 I'm quite fine with it. @josesimoes any specific opinion? |
|
Not that I'm fundamentally against adding it, just that I'm not seeing such a need for exposing this and deviate from the full .NET in this case... @CoryCharlton can you please elaborate on the importance of adding this? |
|
I know this is rather trivial, nevertheless, there's work involved. That's why we have on the contribution workflow a hint to discuss improvements (and breaking changes) before committing work to them. |
|
I didn't realize this class was based on an existing .NET implementation (too many classes for the same thing ;)). My change was based on HttpResponse in Microsoft.AspNetCore.Http which has the HasStarted property. I use this property all the time in .NET Core web apps in middleware to determine if the response has been started or not. The alternative is to just blindly attempt to work on the A user could try/catch everywhere OR check this property if it was available. |
|
@CoryCharlton thank you for the extra details. Nothing against it from me! |
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist: