Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
Loading...
Searching...
No Matches
http_view.hpp
Go to the documentation of this file.
1#pragma once
12
13#include "aria/abi/export.hpp"
15
16#include <string>
17#include <string_view>
18#include <utility>
19
20namespace aria::adapters::http {
21
30public:
31 HttpView(std::string id, std::string kind)
32 : id_(std::move(id)), kind_(std::move(kind)) {}
33
34 [[nodiscard]] std::string_view kind() const noexcept override {
35 return kind_;
36 }
37
39 [[nodiscard]] const std::string& id() const noexcept { return id_; }
40
41private:
42 std::string id_;
43 std::string kind_;
44};
45
46} // namespace aria::adapters::http
std::string_view kind() const noexcept override
Definition http_view.hpp:34
const std::string & id() const noexcept
Stable identifier used as routing key in HTTP/SSE messages.
Definition http_view.hpp:39
HttpView(std::string id, std::string kind)
Definition http_view.hpp:31
Abstract platform widget reference.
Definition view_adapter.hpp:28
#define ARIA_HTTP_API
Definition export.hpp:66
Definition http_adapter.hpp:67
Definition validation_key.hpp:110