HttpMethodOverrideExtensions.UseHttpMethodOverride 方法

定义

重载

UseHttpMethodOverride(IApplicationBuilder)

允许传入的 POST 请求替代标头中指定的类型的方法类型。 当客户端被限制为发送 GET 或 POST 方法但想要调用其他 HTTP 方法时,将使用此中间件。 默认情况下,X-HTTP-Method-Override 请求标头用于指定要隧道的 HTTP 方法。

UseHttpMethodOverride(IApplicationBuilder, HttpMethodOverrideOptions)

允许传入的 POST 请求替代窗体中指定的类型的方法类型。 当客户端被限制为发送 GET 或 POST 方法但想要调用其他 HTTP 方法时,将使用此中间件。

UseHttpMethodOverride(IApplicationBuilder)

Source:
HttpMethodOverrideExtensions.cs
Source:
HttpMethodOverrideExtensions.cs
Source:
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)

Source:
HttpMethodOverrideExtensions.cs
Source:
HttpMethodOverrideExtensions.cs
Source:
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 哪个窗体类型指定替代方法的 。

返回

适用于