Table of Contents

Method CreateRedirectResponse

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

CreateRedirectResponse(string)

Creates an new redirect HttpResponse with given location header.

[Obsolete("This method is deprecated and should not be used.")]
public static HttpResponse CreateRedirectResponse(string location)

Parameters

location string

The absolute or relative URL path which the client must be redirected to.

Returns

HttpResponse

CreateRedirectResponse(RouteAction)

Creates an new redirect HttpResponse which redirects to the route path defined in a action. The provided method must have a valid RouteAttribute attribute.

[Obsolete("This method is deprecated and should not be used.")]
public static HttpResponse CreateRedirectResponse(RouteAction action)

Parameters

action RouteAction

The receiving action contains a RouteAttribute attribute and its method is GET or ANY.

Returns

HttpResponse