14 references to Helpers
Microsoft.AspNetCore.StaticFiles (14)
DefaultFilesMiddleware.cs (6)
38
_fileProvider = _options.FileProvider ??
Helpers
.ResolveFileProvider(hostingEnv);
52
&&
Helpers
.IsGetOrHeadMethod(context.Request.Method)
53
&&
Helpers
.TryMatchPath(context, _matchUrl, forDirectory: true, subpath: out var subpath))
69
if (_options.RedirectToAppendTrailingSlash && !
Helpers
.PathEndsInSlash(context.Request.Path))
71
Helpers
.RedirectToPathWithSlash(context);
75
context.Request.Path = new PathString(
Helpers
.GetPathValueWithSlash(context.Request.Path) + defaultFile);
DirectoryBrowserMiddleware.cs (5)
51
_fileProvider = _options.FileProvider ??
Helpers
.ResolveFileProvider(hostingEnv);
65
&&
Helpers
.IsGetOrHeadMethod(context.Request.Method)
66
&&
Helpers
.TryMatchPath(context, _matchUrl, forDirectory: true, subpath: out var subpath)
71
if (_options.RedirectToAppendTrailingSlash && !
Helpers
.PathEndsInSlash(context.Request.Path))
73
Helpers
.RedirectToPathWithSlash(context);
StaticFileMiddleware.cs (3)
42
_fileProvider = _options.FileProvider ??
Helpers
.ResolveFileProvider(hostingEnv);
90
return
Helpers
.IsGetOrHeadMethod(context.Request.Method);
93
internal static bool ValidatePath(HttpContext context, PathString matchUrl, out PathString subPath) =>
Helpers
.TryMatchPath(context, matchUrl, forDirectory: false, out subPath);