virthttp
0.0
libvirt http interface
|
#include <hdl_ctx.hpp>
Public Attributes | |
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 | |
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) |
Context required to run request handlers regardless of the libvirt object type
|
inlineprotectednoexcept |
Perfect-forwarding of json_res's JsonRes::error
|
inlineprotected |
|
inlineprotected |
virt::Connection& HandlerContext::conn |
the connection to perform libvirt operations through (plans to change to a vector)
JsonRes& HandlerContext::json_res |
the result of running the handlers to be sent to the client
const TargetParser& HandlerContext::target |
the incoming request's URI target