RewriteOptionsExtensions.AddRedirectToHttps RewriteOptionsExtensions.AddRedirectToHttps RewriteOptionsExtensions.AddRedirectToHttps Method

Definition

Overloads

AddRedirectToHttps(RewriteOptions) AddRedirectToHttps(RewriteOptions) AddRedirectToHttps(RewriteOptions)

Redirect a request to https if the incoming request is http

AddRedirectToHttps(RewriteOptions, Int32) AddRedirectToHttps(RewriteOptions, Int32) AddRedirectToHttps(RewriteOptions, Int32)

Redirect a request to https if the incoming request is http

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>) AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>) AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Redirect a request to https if the incoming request is http

AddRedirectToHttps(RewriteOptions) AddRedirectToHttps(RewriteOptions) AddRedirectToHttps(RewriteOptions)

Redirect a request to https if the incoming request is http

public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps (this Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member AddRedirectToHttps : Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttps (options As RewriteOptions) As RewriteOptions

Parameters

Returns

AddRedirectToHttps(RewriteOptions, Int32) AddRedirectToHttps(RewriteOptions, Int32) AddRedirectToHttps(RewriteOptions, Int32)

Redirect a request to https if the incoming request is http

public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode);
static member AddRedirectToHttps : Microsoft.AspNetCore.Rewrite.RewriteOptions * int -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttps (options As RewriteOptions, statusCode As Integer) As RewriteOptions

Parameters

statusCode
Int32 Int32 Int32

The status code to add to the response.

Returns

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>) AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>) AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Redirect a request to https if the incoming request is http

public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, Nullable<int> sslPort);
static member AddRedirectToHttps : Microsoft.AspNetCore.Rewrite.RewriteOptions * int * Nullable<int> -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttps (options As RewriteOptions, statusCode As Integer, sslPort As Nullable(Of Integer)) As RewriteOptions

Parameters

statusCode
Int32 Int32 Int32

The status code to add to the response.

sslPort
Nullable<Int32>

The SSL port to add to the response.

Returns

Applies to