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

Add OnPrepareResponseAsync #45062

Merged

Conversation

stefannikolei
Copy link
Contributor

@stefannikolei stefannikolei commented Nov 13, 2022

Add OnPrepareResponseAsync to StaticFileMiddleware #44932

@ghost ghost added area-runtime community-contribution Indicates that the PR has been added by a community member labels Nov 13, 2022
@ghost
Copy link

ghost commented Nov 13, 2022

Thanks for your PR, @stefannikolei. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

stefannikolei and others added 3 commits November 13, 2022 13:54

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: James Newton-King <[email protected]>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: James Newton-King <[email protected]>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: James Newton-King <[email protected]>
@stefannikolei stefannikolei changed the title #44932 Add OnPrepareResponseAsync Add OnPrepareResponseAsync Nov 13, 2022
Copy link
Member

@Tratcher Tratcher left a 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:

private async Task FoundFile_Served(string baseUrl, string baseDir, string requestUrl)

stefannikolei and others added 3 commits November 15, 2022 10:40

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: Chris Ross <[email protected]>
stefannikolei and others added 3 commits November 21, 2022 21:13

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…Tests.cs

Co-authored-by: Chris Ross <[email protected]>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…Tests.cs

Co-authored-by: Chris Ross <[email protected]>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…Tests.cs

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…Tests.cs
stefannikolei and others added 2 commits November 22, 2022 20:47

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…Tests.cs

Co-authored-by: Chris Ross <[email protected]>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…Tests.cs

Co-authored-by: Chris Ross <[email protected]>
@Tratcher Tratcher merged commit ceffcc9 into dotnet:main Nov 23, 2022
@ghost ghost added this to the 8.0-preview1 milestone Nov 23, 2022
@Tratcher
Copy link
Member

Thanks

@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants