WebAssemblyHttpRequestMessageExtensions.SetBrowserResponseStreamingEnabled Method

Definition

Configures streaming response for the HTTP request.

C#
public static System.Net.Http.HttpRequestMessage SetBrowserResponseStreamingEnabled (this System.Net.Http.HttpRequestMessage requestMessage, bool streamingEnabled);

Parameters

streamingEnabled
Boolean

true if streaming is enabled; otherwise false.

Returns

The HttpRequestMessage.

Remarks

This API is only effective when the browser HTTP Fetch supports response streaming. See https://developer.mozilla.org/en-US/docs/Web/API/Response.

Applies to

Product Versions
ASP.NET Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0