You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pavelsavara@campersau ... In addition to covering the opt-out feature for 10.0, it looks like the current guidance is incomplete. Please correct me if I'm wrong in the following remarks.
Existing remarks and opt-in behavior <10.0
Our only existing remark on this subject is ...
The HTTP response is typically buffered to enable support for synchronous reads on the response content. To enable support for response streaming, use the <xref:Microsoft.AspNetCore.Components.WebAssembly.Http
.WebAssemblyHttpRequestMessageExtensions.SetBrowserResponseStreamingEnabled%2A> extension method on the request.
It looks now like that's incomplete because of ...
In order to be able to use WebAssemblyEnableStreamingResponse/SetBrowserResponseStreamingEnabled option on large files, the user should also set HttpCompletionOption.ResponseHeadersRead so that the content would not be cached in memory. The default is ResponseContentRead which makes HttpClient to "... complete after reading the entire response including the content."
UPDATE (3/5): The PR is up at 👉 #34894. Let's take up the discussion there.
Description
@pavelsavara @campersau ... In addition to covering the opt-out feature for 10.0, it looks like the current guidance is incomplete. Please correct me if I'm wrong in the following remarks.
Existing remarks and opt-in behavior <10.0
Our only existing remark on this subject is ...
Cross-ref: https://learn.microsoft.com/en-us/aspnet/core/blazor/call-web-api?view=aspnetcore-9.0#httpclient-and-httprequestmessage-with-fetch-api-request-options
It looks now like that's incomplete because of ...
Cross-ref: dotnet/runtime#60287 (comment)
I wasn't aware of additional remarks on that, such as ...
Cross-ref: dotnet/runtime#60339 (comment)
I plan to add it to the existing coverage in a paragraph with the following example, which dovetails with our current example code ...
New API >=10.0
First, what Preview release is this landing for?
As of dotnet/runtime#111680 for 10.0, response streaming will be enabled by default with the following API to opt-out ...
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/call-web-api?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/call-web-api.md
Document ID
c7e59a08-1c60-32c2-75fd-33cb77ff7a5d
Article author
@guardrex
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: