A reply from the SAM proxy.
More...
|
std::string | Get (const std::string &key) const |
| Get the value of a given key. More...
|
|
|
std::string | full |
| Full, unparsed reply. More...
|
|
std::string | request |
| Request, used for detailed error reporting. More...
|
|
std::unordered_map< std::string, std::optional< std::string > > | keys |
| A map of keywords from the parsed reply. More...
|
|
A reply from the SAM proxy.
Definition at line 119 of file i2p.h.
◆ Get()
std::string i2p::sam::Session::Reply::Get |
( |
const std::string & |
key | ) |
const |
Get the value of a given key.
For example if the reply is "A=X B" then: Value("A") -> "X" Value("B") -> throws Value("C") -> throws
- Parameters
-
[in] | key | Key whose value to retrieve |
- Returns
- the key's value
- Exceptions
-
std::runtime_error | if the key is not present or if it has no value |
Definition at line 228 of file i2p.cpp.
◆ full
std::string i2p::sam::Session::Reply::full |
Full, unparsed reply.
Definition at line 123 of file i2p.h.
◆ keys
std::unordered_map<std::string, std::optional<std::string> > i2p::sam::Session::Reply::keys |
A map of keywords from the parsed reply.
For example, if the reply is "A=X B C=YZ", then the map will be keys["A"] == "X" keys["B"] == (empty std::optional) keys["C"] == "YZ"
Definition at line 137 of file i2p.h.
◆ request
std::string i2p::sam::Session::Reply::request |
Request, used for detailed error reporting.
Definition at line 128 of file i2p.h.
The documentation for this struct was generated from the following files: