#include <BESUtil.h>
Static Public Member Functions | |
MIME utility functions | |
These functions are used to create the MIME headers for a message from a server to a client. NB: These functions actually write both the response status line and the header.
| |
static void | set_mime_text (ostream &strm) |
Generate an HTTP 1.0 response header for a text document. | |
static void | set_mime_html (ostream &strm) |
static string | www2id (const string &in, const string &escape="%", const string &except="") |
static string | unhexstring (string s) |
static string | lowercase (const string &s) |
static string | unescape (const string &s) |
string BESUtil::lowercase | ( | const string & | s | ) | [static] |
Convert a string to all lower case
void BESUtil::set_mime_html | ( | ostream & | strm | ) | [static] |
void BESUtil::set_mime_text | ( | ostream & | strm | ) | [static] |
Generate an HTTP 1.0 response header for a text document.
out | Write the MIME header to this ostream. |
string BESUtil::unescape | ( | const string & | s | ) | [static] |
Unescape characters with backslash before them
string BESUtil::unhexstring | ( | string | s | ) | [static] |
string BESUtil::www2id | ( | const string & | in, | |
const string & | escape = "%" , |
|||
const string & | except = "" | |||
) | [static] |
This functions are used to unescape hex characters from strings