HTTP parser.
More...
#include <HTTPParser.h>
HTTP parser.
Definition at line 13 of file HTTPParser.h.
◆ HTTPParser() [1/5]
web::HTTPParser::HTTPParser |
( |
| ) |
|
◆ HTTPParser() [2/5]
web::HTTPParser::HTTPParser |
( |
const std::string & | HTTPMessage | ) |
|
◆ HTTPParser() [3/5]
web::HTTPParser::HTTPParser |
( |
const std::vector< char > & | HTTPMessage | ) |
|
◆ HTTPParser() [4/5]
web::HTTPParser::HTTPParser |
( |
const HTTPParser & | other | ) |
|
|
default |
◆ HTTPParser() [5/5]
web::HTTPParser::HTTPParser |
( |
HTTPParser && | other | ) |
|
|
defaultnoexcept |
◆ ~HTTPParser()
web::HTTPParser::~HTTPParser |
( |
| ) |
|
|
default |
◆ getBody()
const string & web::HTTPParser::getBody |
( |
| ) |
const |
◆ getChunks()
const vector< string > & web::HTTPParser::getChunks |
( |
| ) |
const |
◆ getFullResponse()
const pair< int, string > & web::HTTPParser::getFullResponse |
( |
| ) |
const |
◆ getHeaders()
const HeadersMap & web::HTTPParser::getHeaders |
( |
| ) |
const |
◆ getHTTPVersion()
double web::HTTPParser::getHTTPVersion |
( |
| ) |
const |
◆ getJSON()
const json::JSONParser & web::HTTPParser::getJSON |
( |
| ) |
const |
◆ getMethod()
const string & web::HTTPParser::getMethod |
( |
| ) |
const |
◆ getMultiparts()
const vector< Multipart > & web::HTTPParser::getMultiparts |
( |
| ) |
const |
◆ getParameters()
const string & web::HTTPParser::getParameters |
( |
| ) |
const |
◆ getQueryParameters()
const unordered_map< string, string > & web::HTTPParser::getQueryParameters |
( |
| ) |
const |
◆ getRawData()
const string & web::HTTPParser::getRawData |
( |
| ) |
const |
◆ getResponseCode()
int web::HTTPParser::getResponseCode |
( |
| ) |
const |
◆ getResponseMessage()
const string & web::HTTPParser::getResponseMessage |
( |
| ) |
const |
◆ operator bool()
web::HTTPParser::operator bool |
( |
| ) |
const |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ parse()
void web::HTTPParser::parse |
( |
std::string_view | HTTPMessage | ) |
|
◆ operator<<
HTTP_API std::ostream & operator<< |
( |
std::ostream & | outputStream, |
|
|
const HTTPParser & | parser ) |
|
friend |
◆ operator>>
◆ chunkEncoded
const std::string web::HTTPParser::chunkEncoded = "chunked" |
|
inlinestatic |
◆ contentLengthHeader
const std::string web::HTTPParser::contentLengthHeader = "Content-Length" |
|
inlinestatic |
◆ contentTypeHeader
const std::string web::HTTPParser::contentTypeHeader = "Content-Type" |
|
inlinestatic |
◆ crlf
std::string_view web::HTTPParser::crlf = "\r\n" |
|
inlinestaticconstexpr |
◆ crlfcrlf
std::string_view web::HTTPParser::crlfcrlf = "\r\n\r\n" |
|
inlinestaticconstexpr |
◆ jsonEncoded
std::string_view web::HTTPParser::jsonEncoded = "application/json" |
|
inlinestaticconstexpr |
◆ multipartEncoded
std::string_view web::HTTPParser::multipartEncoded = "multipart/form-data" |
|
inlinestaticconstexpr |
◆ transferEncodingHeader
const std::string web::HTTPParser::transferEncodingHeader = "Transfer-Encoding" |
|
inlinestatic |
◆ urlEncoded
std::string_view web::HTTPParser::urlEncoded = "application/x-www-form-urlencoded" |
|
inlinestaticconstexpr |
◆ utf8Encoded
const std::string web::HTTPParser::utf8Encoded = "charset=utf-8" |
|
inlinestatic |
The documentation for this class was generated from the following files: