Sisk

Method

HttpFileServerHandler.ServeFile

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

ServeFile(FileInfo, HttpRequest) #

Serves the specified file as an HTTP response, applying the first compatible converter if available.

C#
protected virtual HttpResponse ServeFile(FileInfo file, HttpRequest request)

Parameters #

file FileInfo

The file to serve.

request HttpRequest

The current HTTP request.

Returns #

HttpResponse

An HttpResponse containing the file or its converted representation.

Type to search the documentation and the API reference.