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 Redirect and RedirectPermanent to HttpResponseBase/HttpResponseWrapper (Fixes #472) #473

Merged
merged 4 commits into from
Mar 11, 2024

Conversation

AvremelM
Copy link
Contributor

PR Title
Add Redirect and RedirectPermanent to HttpResponseBase/HttpResponseWrapper

PR Description

  • Added:
    • HttpResponseBase.Redirect(string url)
    • HttpResponseBase.Redirect(string url, bool endResponse)
    • HttpResponseBase.RedirectPermanent(string url)
    • HttpResponseBase.RedirectPermanent(string url, bool endResponse)
    • HttpResponseWrapper.Redirect(string url)
    • HttpResponseWrapper.Redirect(string url, bool endResponse)
    • HttpResponseWrapper.RedirectPermanent(string url)
    • HttpResponseWrapper.RedirectPermanent(string url, bool endResponse)
  • Unswapped HttpResponseWrapperTests and HttpServerUtilityWrapperTests (their test classes and filenames were swapped with each other)
  • Added new tests to HttpResponseWrapperTests, copied and adapted from HttpResponseTests

Addresses #472

@AvremelM
Copy link
Contributor Author

@dotnet-policy-service agree

@twsouthwick twsouthwick merged commit 08d532b into dotnet:main Mar 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants