Closed mikaelm12 closed 7 years ago
Where will you store it? IIS stores them in server variables (we don't have those). Would this be on a feature interface that the middleware exposes?
/cc @Tratcher
Doc link?
We already have the original url (RawTarget) here: https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNetCore.Http.Features/IHttpRequestFeature.cs#L60
They only need to be exposed as server variables if another rule in Rewrite tries to access them.
What would be the best way to make this more consistent with the IIS HTTP_X_ORIGINAL_URL and UNENCODED_URL variables?
Are there any other variables that URL rewrite stores?
Backlogging for now. If we find a use case for the original request URL, we can bring this back later.
From the URL rewrite reference