Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor streaming rendering responses should expose a custom header indicating that streaming takes place #59571

Open
1 task done
oliverw opened this issue Dec 19, 2024 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components
Milestone

Comments

@oliverw
Copy link

oliverw commented Dec 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

It would be helpful if Blazor could add a custom header to the response, if streaming rendering is in effect to tell downstream proxies which adaptively buffer responses to not buffer in this case.

One example is Cloudflare's Argo Tunnel which disables buffering based on the Content-Type header as shown here. Even though a custom header would not fix the problem, it would open the door to a PR.

Describe the solution you'd like

Have blazor expose a custom header for streaming rendering responses.

Additional context

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Dec 19, 2024
@javiercn
Copy link
Member

@oliverw thanks for contacting us.

For streaming rendering to work, nothing in the connection can buffer the contents. You can set a custom header today on the response and see if you are able to bypass the buffering that way.

@javiercn javiercn added this to the Backlog milestone Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

2 participants