C# Class Hansha.StaticHandler

Inheritance: IHandler
Show file Open project: Deathspike/Hansha

Public Methods

Method Description
GetContentType ( string extension ) : string
HandleAsync ( HttpListenerContext context ) : Task
StaticHandler ( string rootPath ) : System.IO

Method Details

GetContentType() public method

public GetContentType ( string extension ) : string
extension string
return string

HandleAsync() public method

public HandleAsync ( HttpListenerContext context ) : Task
context System.Net.HttpListenerContext
return Task

StaticHandler() public method

public StaticHandler ( string rootPath ) : System.IO
rootPath string
return System.IO