Microsoft.AspNetCore.Components.WebAssembly.Http Namespace

Provides types for making HTTP requests in Blazor WebAssembly apps.

Classes

WebAssemblyHttpRequestMessageExtensions

Extension methods for configuring an instance of HttpRequestMessage with browser-specific options.

Enums

BrowserRequestCache

The cache mode of the request. It controls how the request will interact with the browser's HTTP cache. See https://developer.mozilla.org/en-US/docs/Web/API/Request/cache.

BrowserRequestCredentials

Specifies a value for the 'credentials' option on outbound HTTP requests.

BrowserRequestMode

The mode of the request. This is used to determine if cross-origin requests lead to valid responses

Remarks

For more information about HTTP requests in Blazor WebAssembly apps, see Call a web API from ASP.NET Core Blazor.