9 #include <sys/socket.h> 
   25     tdbg(
"uwsgi_request::read_header: read header successfully, " << bytes << 
" bytes" << std::endl);
 
   32         tdbg(
"uwsgi_request::read_vars: read data successfully, " << bytes << 
" bytes" << std::endl);
 
   38             std::string content_len_s = 
var(
"CONTENT_LENGTH");
 
   39             if (
NO_VAL != content_len_s) {
 
   40                 std::size_t content_len_i = std::atoi(content_len_s.c_str());
 
   54         tdbg(
"uwsgi_request::read_content: read data successfully, " << bytes << 
" bytes" << std::endl);
 
   80         uint16_t key_start = pos + 2;
 
   82         uint16_t val_start = key_start + key_len + 2;
 
   83         if (key_len && val_len) {
 
   87         pos = val_start + val_len;
 
void read_data(socket &sock)
Read request data from a socket. 
void read_vars(socket &sock)
Read the uwsgi parameters from a socket. 
tasks::tools::buffer m_data_buffer
static std::string NO_VAL
tasks::tools::buffer m_content_buffer
std::streamsize read(char *data, std::size_t len)
void read_header(socket &sock)
Read the header from a socket. 
void read_content(socket &sock)
Read POST data into the content buffer. 
const std::string & var(std::string key) const 
uwsgi_packet_header m_header
void parse_vars()
Parse the uswgi parameters into a hash map.