|
Daraja HTTP Framework 3.5.0-SNAPSHOT
HTTP server framework for Object Pascal
|
Functions | |
| string | GetServerBanner () |
| Returns the start-up banner: the word "daraja" as ASCII art, followed by a line with the framework description and DWF_SERVER_VERSION. | |
| string | HTMLEncode (const string AData) |
| Escapes text for HTML: '<', '>', '&', '"' and ''' become <, >, &, " and '. | |
Variables | |
| const | DWF_SERVER_COPYRIGHT = "Copyright (c) 2016 Michael Justin" |
| const | DWF_SERVER_FULL_NAME = "Daraja HTTP Framework " + DWF_SERVER_VERSION |
| const | DWF_SERVER_VERSION = "3.5.0-SNAPSHOT" |
| string GetServerBanner | ( | ) |
Returns the start-up banner: the word "daraja" as ASCII art, followed by a line with the framework description and DWF_SERVER_VERSION.
Lines are separated by sLineBreak; the result ends with a line break.
Referenced by HTMLEncode(), and TdjServer::RemoveConnector().
| string HTMLEncode | ( | const string | AData | ) |
Escapes text for HTML: '<', '>', '&', '"' and ''' become <, >, &, " and '.
The result is safe in HTML element text and in a quoted attribute value, single- or double-quoted. It is not safe in an unquoted attribute, or in a JavaScript, CSS or URL context; those need an encoder made for them.
| AData | the text to escape |
References DWF_SERVER_VERSION, GetServerBanner(), and HTMLEncode().
Referenced by HTMLEncode().
| const DWF_SERVER_COPYRIGHT = "Copyright (c) 2016 Michael Justin" |
| const DWF_SERVER_FULL_NAME = "Daraja HTTP Framework " + DWF_SERVER_VERSION |
| const DWF_SERVER_VERSION = "3.5.0-SNAPSHOT" |
Referenced by HTMLEncode().