Summary
Creates the HTTP server.
Syntax
public Server(string localPath, int port, bool extensionless, string virtualDirectory, bool liveReload, IDictionary<string, string> contentTypes, ILoggerProvider loggerProvider)
Parameters
Name |
Type |
Description |
localPath |
string |
The local path to serve files from. |
port |
int |
The port the server will serve HTTP requests on. |
extensionless |
bool |
true if the server should support extensionless URLs, false otherwise. |
virtualDirectory |
string |
The virtual directory the server should respond to, or null to use the root URL. |
liveReload |
bool |
Enables support for LiveReload. |
contentTypes |
IDictionary<string, string> |
Additional content types the server should support. |
loggerProvider |
ILoggerProvider |
The logger provider to use. |
Return Value