The uwsgi protocol implementation for a request. The response is a HTTP/1.1 response.
More...
#include <uwsgi_request.h>
|
using | uwsgi_vars_t = std::unordered_map< std::string, std::string > |
|
The uwsgi protocol implementation for a request. The response is a HTTP/1.1 response.
Definition at line 27 of file uwsgi_request.h.
tasks::net::uwsgi_request::uwsgi_request |
( |
| ) |
|
|
inline |
void tasks::net::uwsgi_request::clear |
( |
| ) |
|
|
inline |
bool tasks::net::uwsgi_request::done |
( |
| ) |
const |
|
inline |
- Returns
- True if a request has been read from a socket successfully or a response has been written to a socket successfully.
Definition at line 80 of file uwsgi_request.h.
uwsgi_packet_header& tasks::net::uwsgi_request::header |
( |
| ) |
|
|
inline |
void tasks::net::uwsgi_request::parse_vars |
( |
| ) |
|
|
private |
void tasks::net::uwsgi_request::print_header |
( |
| ) |
const |
|
inline |
void tasks::net::uwsgi_request::print_vars |
( |
| ) |
const |
|
inline |
std::streamsize tasks::net::uwsgi_request::read |
( |
char * |
data, |
|
|
std::size_t |
size |
|
) |
| |
|
inline |
Read data from the content buffer.
- Parameters
-
data | A pointer to the destination. |
size | The max number of bytes to copy. |
- Returns
- The number of bytes copied.
Definition at line 73 of file uwsgi_request.h.
void tasks::net::uwsgi_request::read_content |
( |
socket & |
sock | ) |
|
|
private |
void tasks::net::uwsgi_request::read_data |
( |
socket & |
sock | ) |
|
void tasks::net::uwsgi_request::read_header |
( |
socket & |
sock | ) |
|
|
private |
void tasks::net::uwsgi_request::read_vars |
( |
socket & |
sock | ) |
|
|
private |
const std::string& tasks::net::uwsgi_request::var |
( |
std::string |
key | ) |
const |
|
inline |
Provide access to uwsgi parameters.
- Parameters
-
- Returns
- The parameter value.
Definition at line 39 of file uwsgi_request.h.
const uwsgi_vars_t& tasks::net::uwsgi_request::vars |
( |
| ) |
const |
|
inline |
void tasks::net::uwsgi_request::write |
( |
const char * |
data, |
|
|
std::size_t |
size |
|
) |
| |
|
inline |
Copy data into the content buffer.
- Parameters
-
data | A pointer to the data. |
size | The number of bytes to copy. |
Definition at line 66 of file uwsgi_request.h.
uwsgi_packet_header tasks::net::uwsgi_request::m_header |
|
private |
std::string tasks::net::uwsgi_request::NO_VAL |
|
static |
The documentation for this class was generated from the following files: