|
string $body @public | Body of the response, e.g., the HTML page.
TODO: this should be byteString.
|
int $code @public | 200 (OK), 404 (not found), etc.
|
dict<string, string> $headerItems @public | Items to be added to the response header.
|
string $msg @public | human readable message related to "code"
Must not contain a line break.
|
| Create default header with OK code and HTML type.
|
| Add a cookie.
The value must not contain special characters, such as semi-colon,
comma and white space.
|
| Set header item "Content-Length" to length.
|
| Set header item "Content-Type" to type.
|
|