Property | Type | Description | |
---|---|---|---|
DefaultPath | string | ||
GlobalPort | int |
Method | Description | |
---|---|---|
HttpServer ( string path ) : System |
Construct server with suitable port.
|
|
HttpServer ( string path, int port ) : System |
Construct server with given port.
|
|
SaveFile ( string fileKey, byte data ) : bool | ||
Setup ( ) : void | ||
Stop ( ) : void |
Stop server and dispose all functions.
|
Method | Description | |
---|---|---|
HandleUpload ( |
||
Initialize ( string path, int port ) : void | ||
Listen ( ) : void | ||
Process ( |
public HttpServer ( string path ) : System | ||
path | string | Directory path to serve. |
return | System |
public HttpServer ( string path, int port ) : System | ||
path | string | Directory path to serve. |
port | int | Port of the server. |
return | System |
public SaveFile ( string fileKey, byte data ) : bool | ||
fileKey | string | |
data | byte | |
return | bool |