mongo::MiniWebServer Class Reference
#include <miniwebserver.h>
List of all members.
Public Member Functions |
| virtual void | doRequest (const char *rq, string url, string &responseMsg, int &responseCode, vector< string > &headers, const SockAddr &from)=0 |
| | MiniWebServer (const string &ip, int _port) |
| virtual | ~MiniWebServer () |
Static Public Member Functions |
| static const char * | body (const char *buf) |
| static string | getHeader (const char *headers, string name) |
| static string | parseMethod (const char *headers) |
| static void | parseParams (BSONObj ¶ms, string query) |
| static string | parseURL (const char *buf) |
| static string | urlDecode (string s) |
| static string | urlDecode (const char *s) |
Private Member Functions |
| void | accepted (int s, const SockAddr &from) |
Static Private Member Functions |
| static bool | fullReceive (const char *buf) |
Detailed Description
Definition at line 26 of file miniwebserver.h.
Constructor & Destructor Documentation
| mongo::MiniWebServer::MiniWebServer |
( |
const string & |
ip, |
|
|
int |
_port | |
|
) |
| | |
| virtual mongo::MiniWebServer::~MiniWebServer |
( |
|
) |
[inline, virtual] |
Member Function Documentation
| void mongo::MiniWebServer::accepted |
( |
int |
s, |
|
|
const SockAddr & |
from | |
|
) |
| | [private, virtual] |
| static const char* mongo::MiniWebServer::body |
( |
const char * |
buf |
) |
[static] |
| virtual void mongo::MiniWebServer::doRequest |
( |
const char * |
rq, |
|
|
string |
url, |
|
|
string & |
responseMsg, |
|
|
int & |
responseCode, |
|
|
vector< string > & |
headers, |
|
|
const SockAddr & |
from | |
|
) |
| | [pure virtual] |
| static bool mongo::MiniWebServer::fullReceive |
( |
const char * |
buf |
) |
[static, private] |
| static string mongo::MiniWebServer::getHeader |
( |
const char * |
headers, |
|
|
string |
name | |
|
) |
| | [static] |
| static string mongo::MiniWebServer::parseMethod |
( |
const char * |
headers |
) |
[static] |
| static void mongo::MiniWebServer::parseParams |
( |
BSONObj & |
params, |
|
|
string |
query | |
|
) |
| | [static] |
| static string mongo::MiniWebServer::parseURL |
( |
const char * |
buf |
) |
[static] |
| static string mongo::MiniWebServer::urlDecode |
( |
string |
s |
) |
[inline, static] |
| static string mongo::MiniWebServer::urlDecode |
( |
const char * |
s |
) |
[static] |
The documentation for this class was generated from the following file: