ui-utilcpp
1.8.3
|
#include <Header.hpp>
Public Member Functions | |
HeaderField (std::string const &name, std::string const &value) | |
Construct from components. | |
HeaderField (std::string const &line) | |
Construct from composition (parse). More... | |
std::string | get () const |
Get composition. | |
Get components. | |
std::string const & | getName () const |
std::string const & | getValue () const |
Header field.
Example header field: "ContentLength: 1234"
UI::Util::Http::HeaderField::HeaderField | ( | std::string const & | line | ) |
Construct from composition (parse).
todo: What about spaces before colon (e.g. "Content-Length : 34")?
References UI::Util::str2Ascii(), and UI_THROW.