Свойство | Тип | Описание | |
---|---|---|---|
PAGE_NOT_FOUND | String | ||
PAGE_ROOT | String | ||
PAGE_SIGN_IN | String | ||
pageMutations | string>.Dictionary |
Метод | Описание | |
---|---|---|
HttpEngine ( Stream networkStream, |
||
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, |
||
writeStream ( Stream s, |
public HttpEngine ( Stream networkStream, |
||
networkStream | Stream | |
client | ||
Результат | System |
public static addPageMutation ( string placeholder, string replacement ) : bool | ||
placeholder | string | |
replacement | string | |
Результат | bool |
protected abstract on404 ( HttpRequest request ) : void | ||
request | HttpRequest | |
Результат | void |
protected abstract onInit ( HttpRequest request ) : String | ||
request | HttpRequest | |
Результат | String |
public process ( String strmessage, byte message ) : void | ||
strmessage | String | |
message | byte | |
Результат | void |
protected processGet ( HttpRequest request ) : bool | ||
request | HttpRequest | |
Результат | bool |
protected processHead ( HttpRequest request ) : bool | ||
request | HttpRequest | |
Результат | bool |
protected processPost ( HttpRequest request ) : void | ||
request | HttpRequest | |
Результат | void |
protected writeHtmlStream ( Stream s, |
||
s | Stream | |
response | ||
Результат | void |
protected writeStream ( Stream s, |
||
s | Stream | |
response | ||
Результат | void |