C# Класс ModServer.HttpEngine

Наследование: HelperClass
Показать файл Открыть проект

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

Свойство Тип Описание
PAGE_NOT_FOUND String
PAGE_ROOT String
PAGE_SIGN_IN String
pageMutations string>.Dictionary

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

Метод Описание
HttpEngine ( Stream networkStream, TcpClient client ) : System
addPageMutation ( string placeholder, string replacement ) : bool
process ( String strmessage, byte message ) : void

Защищенные методы

Метод Описание
on404 ( HttpRequest request ) : void
onInit ( HttpRequest request ) : String
processGet ( HttpRequest request ) : bool

This method checks that the request path exists in the PAGE_ROOT directory. Then the content-type is parsed from the request. An HttpRequest is generated and sent, followed by the file specified. Call this method conditionally from any subclass unless there are no conditions as to what clients are permitted to GET.

processHead ( HttpRequest request ) : bool
processPost ( HttpRequest request ) : void
writeHtmlStream ( Stream s, HttpResponse response ) : void
writeStream ( Stream s, HttpResponse response ) : void

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

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

public HttpEngine ( Stream networkStream, TcpClient client ) : System
networkStream Stream
client System.Net.Sockets.TcpClient
Результат System

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

public static addPageMutation ( string placeholder, string replacement ) : bool
placeholder string
replacement string
Результат bool

on404() защищенный абстрактный Метод

protected abstract on404 ( HttpRequest request ) : void
request HttpRequest
Результат void

onInit() защищенный абстрактный Метод

protected abstract onInit ( HttpRequest request ) : String
request HttpRequest
Результат String

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

public process ( String strmessage, byte message ) : void
strmessage String
message byte
Результат void

processGet() защищенный Метод

This method checks that the request path exists in the PAGE_ROOT directory. Then the content-type is parsed from the request. An HttpRequest is generated and sent, followed by the file specified. Call this method conditionally from any subclass unless there are no conditions as to what clients are permitted to GET.
protected processGet ( HttpRequest request ) : bool
request HttpRequest
Результат bool

processHead() защищенный Метод

protected processHead ( HttpRequest request ) : bool
request HttpRequest
Результат bool

processPost() защищенный Метод

protected processPost ( HttpRequest request ) : void
request HttpRequest
Результат void

writeHtmlStream() защищенный Метод

protected writeHtmlStream ( Stream s, HttpResponse response ) : void
s Stream
response HttpResponse
Результат void

writeStream() защищенный Метод

protected writeStream ( Stream s, HttpResponse response ) : void
s Stream
response HttpResponse
Результат void

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

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

public static String PAGE_NOT_FOUND
Результат String

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

public static String PAGE_ROOT
Результат String

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

public static String PAGE_SIGN_IN
Результат String

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

public static Dictionary pageMutations
Результат string>.Dictionary