共用方式為


HttpMethodOverrideExtensions.UseHttpMethodOverride 方法

定義

多載

UseHttpMethodOverride(IApplicationBuilder)

允許傳入 POST 要求覆寫標頭中指定的類型的方法類型。 當用戶端僅限於傳送 GET 或 POST 方法,但想要叫用其他 HTTP 方法時,就會使用此中介軟體。 根據預設,會使用 X-HTTP-Method-Override 要求標頭來指定所要通道的 HTTP 方法。

UseHttpMethodOverride(IApplicationBuilder, HttpMethodOverrideOptions)

允許傳入 POST 要求覆寫格式指定類型的方法類型。 當用戶端僅限於傳送 GET 或 POST 方法,但想要叫用其他 HTTP 方法時,就會使用此中介軟體。

UseHttpMethodOverride(IApplicationBuilder)

來源:
HttpMethodOverrideExtensions.cs
來源:
HttpMethodOverrideExtensions.cs
來源:
HttpMethodOverrideExtensions.cs

允許傳入 POST 要求覆寫標頭中指定的類型的方法類型。 當用戶端僅限於傳送 GET 或 POST 方法,但想要叫用其他 HTTP 方法時,就會使用此中介軟體。 根據預設,會使用 X-HTTP-Method-Override 要求標頭來指定所要通道的 HTTP 方法。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHttpMethodOverride(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ builder);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHttpMethodOverride (this Microsoft.AspNetCore.Builder.IApplicationBuilder builder);
static member UseHttpMethodOverride : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHttpMethodOverride (builder As IApplicationBuilder) As IApplicationBuilder

參數

builder
IApplicationBuilder

IApplicationBuilder這個方法擴充的實例。

傳回

適用於

UseHttpMethodOverride(IApplicationBuilder, HttpMethodOverrideOptions)

來源:
HttpMethodOverrideExtensions.cs
來源:
HttpMethodOverrideExtensions.cs
來源:
HttpMethodOverrideExtensions.cs

允許傳入 POST 要求覆寫格式指定類型的方法類型。 當用戶端僅限於傳送 GET 或 POST 方法,但想要叫用其他 HTTP 方法時,就會使用此中介軟體。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHttpMethodOverride(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ builder, Microsoft::AspNetCore::Builder::HttpMethodOverrideOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHttpMethodOverride (this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, Microsoft.AspNetCore.Builder.HttpMethodOverrideOptions options);
static member UseHttpMethodOverride : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.HttpMethodOverrideOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHttpMethodOverride (builder As IApplicationBuilder, options As HttpMethodOverrideOptions) As IApplicationBuilder

參數

builder
IApplicationBuilder

IApplicationBuilder這個方法擴充的實例。

options
HttpMethodOverrideOptions

HttpMethodOverrideOptions 表示哪個表單類型會指定 override 方法。

傳回

適用於