SNode.C
|
#include <Fields.h>
Public Member Functions | |
Fields (core::socket::stream::SocketContext *socketContext, std::set< std::string > fieldsExpected={}) | |
Fields (Fields &)=delete | |
Fields (Fields &&)=delete | |
Fields & | operator= (Fields &)=delete |
Fields & | operator= (Fields &&)=delete |
void | setFieldsExpected (std::set< std::string > fieldsExpected) |
std::size_t | read () |
web::http::CiStringMap< std::string > && | getHeader () |
bool | isComplete () const |
bool | isError () const |
int | getErrorCode () const |
std::string | getErrorReason () |
Private Member Functions | |
void | splitLine (const std::string &line) |
Private Attributes | |
core::socket::stream::SocketContext * | socketContext |
web::http::CiStringMap< std::string > | fields |
std::set< std::string > | fieldsExpected |
std::string | line |
std::size_t | maxLineLength |
bool | completed = false |
int | errorCode = 0 |
std::string | errorReason |
char | lastButOne = '\0' |
char | last = '\0' |
|
explicit |
Definition at line 38 of file Fields.cpp.
References Fields(), maxLineLength, and socketContext.
Referenced by Fields().
|
delete |
|
delete |
int web::http::decoder::Fields::getErrorCode | ( | ) | const |
std::string web::http::decoder::Fields::getErrorReason | ( | ) |
web::http::CiStringMap< std::string > && web::http::decoder::Fields::getHeader | ( | ) |
Definition at line 137 of file Fields.cpp.
bool web::http::decoder::Fields::isComplete | ( | ) | const |
bool web::http::decoder::Fields::isError | ( | ) | const |
Definition at line 145 of file Fields.cpp.
References errorCode.
std::size_t web::http::decoder::Fields::read | ( | ) |
Definition at line 48 of file Fields.cpp.
References completed, errorCode, errorReason, last, lastButOne, line, maxLineLength, core::socket::stream::SocketContext::readFromPeer(), socketContext, and splitLine().
void web::http::decoder::Fields::setFieldsExpected | ( | std::set< std::string > | fieldsExpected | ) |
Definition at line 44 of file Fields.cpp.
|
private |
Definition at line 109 of file Fields.cpp.
References errorCode, and errorReason.
Referenced by read().
|
private |
Definition at line 71 of file Fields.h.
Referenced by isComplete(), and read().
|
private |
Definition at line 72 of file Fields.h.
Referenced by getErrorCode(), isError(), read(), and splitLine().
|
private |
Definition at line 73 of file Fields.h.
Referenced by getErrorReason(), read(), and splitLine().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |