Microsoft.Owin.StaticFiles
Provides a mapping between file extensions and MIME types.
Used to look up MIME types given a file path
Given a file path, determine the MIME type
A file path
The resulting MIME type
True if MIME type could be determined
Creates a new provider with a set of default mappings.
Creates a lookup engine using the provided mapping.
It is recommended that the IDictionary instance use StringComparer.OrdinalIgnoreCase.
Given a file path, determine the MIME type
A file path
The resulting MIME type
True if MIME type could be determined
The cross reference table of file extensions and content-types.
Generates an HTML view for a directory.
Generates the view for a directory
Generates the view for a directory.
Implementers should properly handle HEAD requests.
Implementers should set all necessary response headers (e.g. Content-Type, Content-Length, etc.).
Generates an HTML view for a directory.
Options for selecting default file names.
Options common to several middleware components
The type of the subclass
Creates an new instance of the SharedOptionsBase.
Options common to several middleware components
The relative request path that maps to static resources.
The file system used to locate resources
Configuration for the DefaultFilesMiddleware.
Configuration for the DefaultFilesMiddleware.
An ordered list of file names to select by default. List length and ordering may affect performance.
Directory browsing options
Enabled directory browsing in the current physical directory for all request paths
Enabled directory browsing in the current physical directory for all request paths
The component that generates the view.
Options common to several middleware components
Defaults to all request paths and the current physical directory.
The request path that maps to static resources
The file system used to locate resources
Options for all of the static file middleware components
Creates a combined options class for all of the static file middleware components.
Options for configuring the StaticFileMiddleware.
Options for configuring the DirectoryBrowserMiddleware.
Options for configuring the DefaultFilesMiddleware.
Directory browsing is disabled by default.
Default files are enabled by default.
Extension methods that combine all of the static file middleware components:
Default files, directory browsing, send file, and static files
Enable all static file middleware (except directory browsing) for the current request path in the current directory.
Enable all static file middleware on for the current request path in the current directory.
Should directory browsing be enabled?
Enables all static file middleware (except directory browsing) for the given request path from the directory of the same name
The relative request path and physical path.
Enable all static file middleware with the given options
Extension methods for the DefaultFilesMiddleware
Enables default file mapping on the current path from the current directory
Enables default file mapping for the given request path from the directory of the same name
The relative request path and physical path.
Enables default file mapping with the given options
This examines a directory path and determines if there is a default file present.
If so the file name is appended to the path and execution continues.
Note we don't just serve the file because it may require interpretation.
Creates a new instance of the DefaultFilesMiddleware.
The next middleware in the pipeline.
The configuration options for this middleware.
This examines the request to see if it matches a configured directory, and if there are any files with the
configured default names in that directory. If so this will append the corresponding file name to the request
path for a later middleware to handle.
The request environment.
Enables directory browsing
Creates a new instance of the SendFileMiddleware.
The next middleware in the pipeline.
The configuration for this middleware.
Examines the request to see if it matches a configured directory. If so, a view of the directory contents is returned.
The request environment.
Extension methods for the DirectoryBrowserMiddleware
Enable directory browsing on the current path for the current directory
Enables directory browsing for the given request path from the directory of the same name
The relative request path and physical path.
Enable directory browsing with the given options
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to No IContentTypeProvider was specified..
Looks up a localized string similar to No formatter provided..
Looks up a localized string similar to This server does not support the sendfile.SendAsync extension..
Looks up a localized string similar to Index of.
Looks up a localized string similar to Last Modified.
Looks up a localized string similar to Modified.
Looks up a localized string similar to Name.
Looks up a localized string similar to Size.
Looks up a localized string similar to The list of files in the given directory. Column headers are listed in the first row..
This middleware provides an efficient fallback mechanism for sending static files
when the server does not natively support such a feature.
The caller is responsible for setting all headers in advance.
The caller is responsible for performing the correct impersonation to give access to the file.
Creates a new instance of the SendFileMiddleware.
The next middleware in the pipeline.
Adds the sendfile.SendAsync Func to the request environment, if not already present.
OWIN environment dictionary which stores state information about the request, response and relevant server state.
Extension methods for the SendFileMiddleware
Provide a SendFileFunc if another component does not.
Provides extensions for IOwinResponse exposing the SendFile extension.
Checks if the SendFile extension is supported.
True if sendfile.SendAsync is defined in the environment.
Sends the given file using the SendFile extension.
Sends the given file using the SendFile extension.
The full or relative path to the file.
The offset in the file.
The number of types to send, or null to send the remainder of the file.
Extension methods for the StaticFileMiddleware
Enables static file serving for the current request path from the current directory
Enables static file serving for the given request path from the directory of the same name
The relative request path and physical path.
Enables static file serving with the given options
Enables serving static files for a given request path
Creates a new instance of the StaticFileMiddleware.
The next middleware in the pipeline.
The configuration options.
Processes a request to determine if it matches a known file, and if so, serves it.
OWIN environment dictionary which stores state information about the request, response and relevant server state.
Options for serving static files
Defaults to all request paths in the current physical directory
Defaults to all request paths in the current physical directory
Used to map files to content-types.
The default content type for a request if the ContentTypeProvider cannot determine one.
None is provided by default, so the client must determine the format themselves.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7
If the file is not a recognized content-type should it be served?
Default: false.
Called after the status code and headers have been set, but before the body has been written.
This can be used to add or change the response headers.
Contains information about the request and the file that will be served in response.
The request and response information.
The file to be served.