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

UseStatusCodePagesWithReExecute method original context handling unclear #34070

Open
jeran-urban opened this issue Nov 8, 2024 · 0 comments
Open

Comments

@jeran-urban
Copy link

jeran-urban commented Nov 8, 2024

Description

Example, on this same page there is a point to mention:

For the UseExceptionHandler(IApplicationBuilder, String) overload that is used in templates, only the request path is modified, and the route data is cleared. Request data such as headers, method, and items are all reused as-is.

However for the UseStatusCodePagesWithReExecute extension method it does not clarify this point. Specifically I was trying to verify how to see the original http method and referrer during the custom handling. Through trial and error I was able to verify that the http method and the referrer are preserved and I could simply get the values from the HttpContext.Request. This documentation would be incredibly helpful with this update.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/error-handling.md

Document ID

38515dfb-91a5-b395-db9d-084bbaf095c8

Article author

@tdykstra

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant