-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add missing API: HttpRequest.FilePath #278
Comments
Seems like FilePath is really only looking for the first part of the url with a period that "looks like a file". We can add an adapter that uses the same semantics. |
@joperezr @twsouthwick This is a pretty naïve implementation - it might pass muster for some use cases, but FilePath and PathInfo are used as part of the handler/endpoint resolution system. If the folder of a file contains a |
@CZEMacLeod good call. I hadn't realized that - during my tests on framework, I happened to use ".aspx" as the file type so things worked for the naive case. I've switched the current approach to just plumb a feature through to the HttpRequest APIs so the implementation can be added later if/when IHttpHandlers are supported. btw Are you currently using IHttpHandlers that you have in that branch? |
Not actively using it no. It was an experiment to see how much would be needed and as a precursor to trying to do a system.web.optimization port. |
Summary
When I try the IHttpModule and HttpApplication in the adapter, I found that HttpRequest.FilePath is used in my module(in Sharepoint Online) but it is not supported.
Motivation and goals
HttpRequest.FilePath is used in my module(in Sharepoint Online) but it is not supported. I wonder if there is plan to support the API.
In scope
HttpRequest.FilePath
Usage example:
request.FilePath.Contains("/api")
request.FilePath.Contains(".")
request.FilePath.EndsWith(".aspx")
The text was updated successfully, but these errors were encountered: