Fast cgi server class. More...
#include <libppbase/base_cgi/CGIFast.h>
Public Member Functions | |
| CGIFast (const base::String &program) | |
| Constructor. | |
| void | flush () |
| Flushes the output stream. | |
| const char * | getenv (const char *var, const char *defval=NULL) const |
| Gets an environment variable that was set by the http server. | |
| void | init (FCGX_Request *request) |
| Initializes the object and reads a http request from the input stream by calling either initGet or initPost. | |
| void | out (const char *s, size_t len=base::String::npos) |
| Writes data (mostly html) to the output stream. | |
Fast cgi server class.
| base_cgi::CGIFast::CGIFast | ( | const base::String & | program | ) |
Constructor.
| program | program name, may be full path |
| const char* base_cgi::CGIFast::getenv | ( | const char * | var, | |
| const char * | defval = NULL | |||
| ) | const [virtual] |
Gets an environment variable that was set by the http server.
| var | the variable name | |
| defval | value to return if the variable does not exist |
Implements base_cgi::CGI.
| void base_cgi::CGIFast::init | ( | FCGX_Request * | request | ) |
Initializes the object and reads a http request from the input stream by calling either initGet or initPost.
| request | the http request |
| void base_cgi::CGIFast::out | ( | const char * | s, | |
| size_t | len = base::String::npos | |||
| ) | [virtual] |
Writes data (mostly html) to the output stream.
| s | data to write | |
| len | number of bytes to write |
Implements base_cgi::CGI.
1.7.1