|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
Logical view exposed over HTTP. More...
#include <http_view.hpp>
Public Member Functions | |
| HttpView (std::string id, std::string kind) | |
| std::string_view | kind () const noexcept override |
| const std::string & | id () const noexcept |
| Stable identifier used as routing key in HTTP/SSE messages. | |
| Public Member Functions inherited from aria::binding::IView | |
| IView () | |
| IView (const IView &)=delete | |
| IView & | operator= (const IView &)=delete |
| IView (IView &&)=delete | |
| IView & | operator= (IView &&)=delete |
| virtual | ~IView () |
| Subscription | on_destroy (std::function< void()> cb) const |
| Subscribe to "this view is about to be destroyed". | |
Additional Inherited Members | |
| Protected Member Functions inherited from aria::binding::IView | |
| void | fire_destroy_ () noexcept |
| Invoked by ~IView() to fan out the notification — this is the last-resort trigger. | |
Logical view exposed over HTTP.
See wire_protocol.hpp for the full set of valid kind values.
Lifetime: the HttpView is owned by the HttpAdapter's view registry (see HttpAdapter::register_view). Destroying the adapter (or calling HttpAdapter::unregister_view) fires the IView::on_destroy signal so any BindingEngine subscriptions wired to this view are released.
|
inline |
|
inlinenodiscardoverridevirtualnoexcept |
Implements aria::binding::IView.
|
inlinenodiscardnoexcept |
Stable identifier used as routing key in HTTP/SSE messages.