WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestCredentials 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.
Configures a value for the 'credentials' option for the HTTP request.
public:
[System::Runtime::CompilerServices::Extension]
static System::Net::Http::HttpRequestMessage ^ SetBrowserRequestCredentials(System::Net::Http::HttpRequestMessage ^ requestMessage, Microsoft::AspNetCore::Components::WebAssembly::Http::BrowserRequestCredentials requestCredentials);
public static System.Net.Http.HttpRequestMessage SetBrowserRequestCredentials (this System.Net.Http.HttpRequestMessage requestMessage, Microsoft.AspNetCore.Components.WebAssembly.Http.BrowserRequestCredentials requestCredentials);
static member SetBrowserRequestCredentials : System.Net.Http.HttpRequestMessage * Microsoft.AspNetCore.Components.WebAssembly.Http.BrowserRequestCredentials -> System.Net.Http.HttpRequestMessage
<Extension()>
Public Function SetBrowserRequestCredentials (requestMessage As HttpRequestMessage, requestCredentials As BrowserRequestCredentials) As HttpRequestMessage
Parameters
- requestMessage
- HttpRequestMessage
The HttpRequestMessage.
- requestCredentials
- BrowserRequestCredentials
The BrowserRequestCredentials option.
Returns
The HttpRequestMessage.
Remarks
See https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials.