C# Класс UlteriusServer.WebServer.HttpServer

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultPath string
GlobalPort int

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
HandleUpload ( HttpListenerContext context ) : void
Initialize ( string path, int port ) : void
Listen ( ) : void
Process ( HttpListenerContext context ) : void

Описание методов

HttpServer() публичный Метод

Construct server with suitable port.
public HttpServer ( string path ) : System
path string Directory path to serve.
Результат System

HttpServer() публичный Метод

Construct server with given port.
public HttpServer ( string path, int port ) : System
path string Directory path to serve.
port int Port of the server.
Результат System

SaveFile() публичный Метод

public SaveFile ( string fileKey, byte data ) : bool
fileKey string
data byte
Результат bool

Setup() публичный статический Метод

public static Setup ( ) : void
Результат void

Stop() публичный Метод

Stop server and dispose all functions.
public Stop ( ) : void
Результат void

Описание свойств

DefaultPath публичное статическое свойство

public static string DefaultPath
Результат string

GlobalPort публичное статическое свойство

public static int GlobalPort
Результат int