lintel 0.2.0
Loading...
Searching...
No Matches
HttpEntry.h
Go to the documentation of this file.
1#ifndef LINTEL_HTTPENTRY_H
2#define LINTEL_HTTPENTRY_H
3
4#include <memory>
5#include <ostream>
6
10
11namespace lintel {
13class HttpEntry : public Entry
14{
15private:
16 std::shared_ptr<ServerConfiguration> m_serverConfiguration;
17 std::shared_ptr<ClientConfiguration> m_clientConfiguration;
18
19public:
22 HttpEntry(std::string_view component, std::shared_ptr<ServerConfiguration> serverConfiguration);
23
26 HttpEntry(std::string_view component, std::shared_ptr<ClientConfiguration> clientConfiguration);
27
29 [[nodiscard]] const std::shared_ptr<ServerConfiguration> &getServerConfiguration() const;
30
32 [[nodiscard]] const std::shared_ptr<ClientConfiguration> &getClientConfiguration() const;
33
35 bool isServer();
36
38 bool isClient();
39
40 friend std::ostream &operator<<(std::ostream &os, const HttpEntry &entry);
41};
42
43}// namespace lintel
44#endif// LINTEL_HTTPENTRY_H
Definition Entry.h:10
Definition HttpEntry.h:14
HttpEntry(std::string_view component, std::shared_ptr< ServerConfiguration > serverConfiguration)
HttpEntry(std::string_view component, std::shared_ptr< ClientConfiguration > clientConfiguration)
const std::shared_ptr< ServerConfiguration > & getServerConfiguration() const
const std::shared_ptr< ClientConfiguration > & getClientConfiguration() const
friend std::ostream & operator<<(std::ostream &os, const HttpEntry &entry)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9