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)) 69if (_options.RedirectToAppendTrailingSlash && !Helpers.PathEndsInSlash(context.Request.Path)) 71Helpers.RedirectToPathWithSlash(context); 75context.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) 71if (_options.RedirectToAppendTrailingSlash && !Helpers.PathEndsInSlash(context.Request.Path)) 73Helpers.RedirectToPathWithSlash(context);
StaticFileMiddleware.cs (3)
42_fileProvider = _options.FileProvider ?? Helpers.ResolveFileProvider(hostingEnv); 90return Helpers.IsGetOrHeadMethod(context.Request.Method); 93internal static bool ValidatePath(HttpContext context, PathString matchUrl, out PathString subPath) => Helpers.TryMatchPath(context, matchUrl, forDirectory: false, out subPath);