C# Class SizSelCsZzz.Extras.StaticServer

Inheritance: FakeServer, IEnumerable
ファイルを表示 Open project: fschwiet/SizSelCsZzz Class Usage Examples

Public Properties

Property Type Description
ContentType_Html string
ContentType_Javascript string

Public Methods

Method Description
Add ( string path, Action handler ) : StaticServer
Add ( string path, string content ) : StaticServer
Start ( ) : StaticServer
StaticServer ( ) : System
StaticServer ( string host, int port ) : System
WithContentType ( string extension, string expectedBarContentType ) : StaticServer

Private Methods

Method Description
AddContentTypeIfAvailable ( string localPath, HttpListenerResponse response ) : void
IEnumerable ( ) : IEnumerator

Method Details

Add() public method

public Add ( string path, Action handler ) : StaticServer
path string
handler Action
return StaticServer

Add() public method

public Add ( string path, string content ) : StaticServer
path string
content string
return StaticServer

Start() public method

public Start ( ) : StaticServer
return StaticServer

StaticServer() public method

public StaticServer ( ) : System
return System

StaticServer() public method

public StaticServer ( string host, int port ) : System
host string
port int
return System

WithContentType() public method

public WithContentType ( string extension, string expectedBarContentType ) : StaticServer
extension string
expectedBarContentType string
return StaticServer

Property Details

ContentType_Html public_oe static_oe property

public static string ContentType_Html
return string

ContentType_Javascript public_oe static_oe property

public static string ContentType_Javascript
return string