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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for