Sisk

Class

HttpFileServer

Namespace
Sisk.Core.Http.FileSystem
Assembly
Sisk.Core.dll

Provides static factory methods for creating route actions that serve files and directories from the local file system.

C#
public static class HttpFileServer

Inheritance #

object ← HttpFileServer

Inherited Members #

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods #

NameDescription
CreateFileSystemRouteAction(HttpFileServerHandler)Creates a RouteAction delegate that uses the specified HttpFileServerHandler to handle requests.
CreateFileSystemRouteAction(string, bool)Creates a RouteAction delegate that serves files from the specified root directory, optionally allowing directory listings when no index file is present.
CreateServingRoute(string, HttpFileServerHandler, IRequestHandler[]?)Creates a Route that serves files and directories from the specified base path using the provided HttpFileServerHandler.
CreateServingRoute(string, string)Creates a Route that serves files and directories from the specified base path and root directory.

Type to search the documentation and the API reference.