virthttp
0.0
libvirt http interface
|
#include <network.hpp>
Public Member Functions | |
NetworkUnawareHandlers (HandlerContext &ctx) | |
Static Public Member Functions | |
static constexpr auto | search_all_flags (const TargetParser &target) noexcept-> std::optional< virt::enums::connection::list::networks::Flag > |
Additional Inherited Members | |
Public Attributes inherited from HandlerContext | |
virt::Connection & | conn |
the connection to perform libvirt operations through (plans to change to a vector) More... | |
JsonRes & | json_res |
the result of running the handlers to be sent to the client More... | |
const TargetParser & | target |
the incoming request's URI target More... | |
Protected Member Functions inherited from HandlerContext | |
template<class... Args> | |
auto | error (Args &&...args) const noexcept(noexcept(json_res.error(std::forward< Args >(args)...))) -> decltype(json_res.error(std::forward< Args >(args)...)) |
const auto | fwd_err (bool fwd, int code) |
const auto | fwd_as_if_err (int code) |
Networks-specific handler utilities
|
inlineexplicit |
|
inlinestaticnoexcept |
Extractor of virt::Connection::List::Networks::Flag from a URI's target
[in] | target | the target to extract the flag from |
std::nullopt
on error