C# Class Gate.Middleware.StaticFiles.FileServer

Mostra file Open project: owin/museum-piece-gate Class Usage Examples

Public Methods

Method Description
FileServer ( string root ) : System
Invoke ( object>.IDictionary env ) : System.Threading.Tasks.Task

Private Methods

Method Description
Fail ( int status, string body, string headerName = null, string headerValue = null ) : Func,Task>
Serve ( object>.IDictionary env, string path ) : System.Threading.Tasks.Task

Method Details

FileServer() public method

public FileServer ( string root ) : System
root string
return System

Invoke() public method

public Invoke ( object>.IDictionary env ) : System.Threading.Tasks.Task
env object>.IDictionary
return System.Threading.Tasks.Task