Dela via


RequestBuilder.AddHeader(String, String) Method

Definition

Add the given header and value to the request or request content.

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

Parameters

name
String
value
String

Returns

This RequestBuilder for chaining.

Applies to