Skip to content

Add Redirect and RedirectPermanent to HttpResponseBase and HttpResponseWrapper. #472

@AvremelM

Description

@AvremelM

Summary

Adds Redirect and RedirectPermanent methods to HttpResponseBase and HttpResponseWrapper classes.

Motivation and goals

These APIs are part of System.Web.HttpResponseBase and System.Web.HttpResponseWrapper in .NET 4.0

Looks like this possibly(?) could have been added after #102 or #233, when these methods were added to HttpResponse.

Examples

HttpResponseBase response = new HttpContextWrapper(HttpContext.Current).Response;

response.Redirect(newUrl);
response.Redirect(newUrl, true);

response.RedirectPermanent(newUrl);
response.RedirectPermanent(newUrl, true);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍Label added to new issues which need Triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions