RequestBuilder.AddHeader(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.