|
ui-utilcpp
1.8.3
|
Parse and represent a response's status line. More...
#include <Header.hpp>

Public Types | |
| typedef unsigned int | Code |
Public Member Functions | |
| StatusLine (Code const &code=200, std::string const &reason="OK", std::string const &version="HTTP/1.1") | |
| Construct from components. | |
| StatusLine (std::string const &line) | |
| Construct from composition (parse). | |
| std::string | get () const |
| Get composition. | |
Set (and validate) components. | |
| StatusLine & | setCode (Code const &code) |
| StatusLine & | setCode (std::string const &code) |
| StatusLine & | setReason (std::string const &reason) |
| StatusLine & | setVersion (std::string const &version) |
Get components. | |
| Code const & | getCode () const |
| std::string | getCodeStr () const |
| std::string const & | getReason () const |
| std::string const & | getVersion () const |
Parse and represent a response's status line.
Example status line: "HTTP/1.1 550 Internal Server Error"
1.8.9.1