Skip to content

Blazor SSR APIs for accessing HttpContext without IHttpContextAccessor #48769

Closed
@SteveSandersonMS

Description

Ideally we'd support things like:

[FromHttpContext] public HttpRequest Request { get; set; }
[FromHttpContext] public HttpResponse Response { get; set; }

This is useful for things like:

  • Reading the HTTP method
  • Reading and writing cookies
  • Setting arbitrary response headers

Metadata

Labels

area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-full-stack-web-uiFull stack web UI with Blazor

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions