RequestBuilder.AddHeader(String, String) 方法

定义

将给定的标头和值添加到请求或请求内容中。

public:
 Microsoft::AspNetCore::TestHost::RequestBuilder ^ AddHeader(System::String ^ name, System::String ^ value);
public Microsoft.AspNetCore.TestHost.RequestBuilder AddHeader (string name, string value);
member this.AddHeader : string * string -> Microsoft.AspNetCore.TestHost.RequestBuilder
Public Function AddHeader (name As String, value As String) As RequestBuilder

参数

name
String
value
String

返回

用于 RequestBuilder 链接的。

适用于