Property | Type | Description | |
---|---|---|---|
PAGE_NOT_FOUND | String | ||
PAGE_ROOT | String | ||
PAGE_SIGN_IN | String | ||
pageMutations | string>.Dictionary |
Method | Description | |
---|---|---|
HttpEngine ( Stream networkStream, |
||
addPageMutation ( string placeholder, string replacement ) : bool | ||
process ( String strmessage, byte message ) : void |
Method | Description | |
---|---|---|
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 | ||
return | System |
public static addPageMutation ( string placeholder, string replacement ) : bool | ||
placeholder | string | |
replacement | string | |
return | bool |
protected abstract on404 ( HttpRequest request ) : void | ||
request | HttpRequest | |
return | void |
protected abstract onInit ( HttpRequest request ) : String | ||
request | HttpRequest | |
return | String |
public process ( String strmessage, byte message ) : void | ||
strmessage | String | |
message | byte | |
return | void |
protected processGet ( HttpRequest request ) : bool | ||
request | HttpRequest | |
return | bool |
protected processHead ( HttpRequest request ) : bool | ||
request | HttpRequest | |
return | bool |
protected processPost ( HttpRequest request ) : void | ||
request | HttpRequest | |
return | void |
protected writeHtmlStream ( Stream s, |
||
s | Stream | |
response | ||
return | void |
protected writeStream ( Stream s, |
||
s | Stream | |
response | ||
return | void |