Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Servers.FileSystemHandler

Summary

Provides a handler for HttpServer that can return files and list the contents of directories on the local file system.

Constructors

FileSystemHandler(string baseDir, FileSystemOptions options = null)
Initializes a new instance of FileSystemHandler.

Instance methods

HttpResponse Returns an HttpResponse that handles the specified request, either by delivering a file from the local file system, or by listing the contents of a directory in the local file system. The file or directory served is determined from the configured FileSystemHandler.BaseDirectory and the HttpRequest.Url of the specified request.

Instance properties

string Specifies the directory in the local file system from which files are served and directory contents are listed.
FileSystemOptionsSpecifies the options associated with this instance, or null to use the FileSystemHandler.DefaultOptions.

Static properties

FileSystemOptions Specifies the default options to fall back to whenever an instance of this class has no options of its own.