C# Class SizSelCsZzz.Extras.StaticServer

Inheritance: FakeServer, IEnumerable
Afficher le fichier Open project: fschwiet/SizSelCsZzz Class Usage Examples

Méthodes publiques

Свойство Type Description
ContentType_Html string
ContentType_Javascript string

Méthodes publiques

Méthode 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

Méthode Description
AddContentTypeIfAvailable ( string localPath, HttpListenerResponse response ) : void
IEnumerable ( ) : IEnumerator

Method Details

Add() public méthode

public Add ( string path, Action handler ) : StaticServer
path string
handler Action
Résultat StaticServer

Add() public méthode

public Add ( string path, string content ) : StaticServer
path string
content string
Résultat StaticServer

Start() public méthode

public Start ( ) : StaticServer
Résultat StaticServer

StaticServer() public méthode

public StaticServer ( ) : System
Résultat System

StaticServer() public méthode

public StaticServer ( string host, int port ) : System
host string
port int
Résultat System

WithContentType() public méthode

public WithContentType ( string extension, string expectedBarContentType ) : StaticServer
extension string
expectedBarContentType string
Résultat StaticServer

Property Details

ContentType_Html public_oe static_oe property

public static string ContentType_Html
Résultat string

ContentType_Javascript public_oe static_oe property

public static string ContentType_Javascript
Résultat string