-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Add OnPrepareResponseAsync #45062
Add OnPrepareResponseAsync #45062
Conversation
Thanks for your PR, @stefannikolei. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Co-authored-by: James Newton-King <[email protected]>
Co-authored-by: James Newton-King <[email protected]>
Co-authored-by: James Newton-King <[email protected]>
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.
Please add a unit test for each callback, and their ordering. This should be a good example:
aspnetcore/src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Line 175 in d0f60f2
private async Task FoundFile_Served(string baseUrl, string baseDir, string requestUrl) |
Co-authored-by: Chris Ross <[email protected]>
src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Outdated
Show resolved
Hide resolved
…Tests.cs Co-authored-by: Chris Ross <[email protected]>
…Tests.cs Co-authored-by: Chris Ross <[email protected]>
src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs
Outdated
Show resolved
Hide resolved
…Tests.cs Co-authored-by: Chris Ross <[email protected]>
…Tests.cs Co-authored-by: Chris Ross <[email protected]>
Thanks |
Add OnPrepareResponseAsync to StaticFileMiddleware #44932