lintel 0.2.0
Loading...
Searching...
No Matches
HttpComponent.h
Go to the documentation of this file.
1#ifndef LINTEL_HTTPCOMPONENT_H
2#define LINTEL_HTTPCOMPONENT_H
3
4#include <memory>
5#include <tinyxml2.h>
6
9
10namespace lintel {
13{
14private:
17 std::shared_ptr<EnvironmentConfiguration> m_environmentConfiguration;
18
19 static struct Shapes
20 {
21 const char *const CONFIG_ROOT = "HttpHost";
22 const char *const SERVER_ROOT = "Server";
23 const char *const CLIENT_ROOT = "Client";
24 const char *const HOST = "host";
25 const char *const PORT = "port";
26 const char *const READ_TIMEOUT = "read_timeout";
27 const char *const WRITE_TIMEOUT = "write_timeout";
28 const char *const IDLE_TIMEOUT = "idle_timeout";
29 const char *const CONNECTION_TIMEOUT = "connection_timeout";
30 const char *const CERT_PATH = "cert_path";
31 const char *const KEY_PATH = "key_path";
32 const char *const CA_CERT_PATH = "ca_cert_path";
33 const char *const REQUIRE_TLS = "require_tls";
34 const char *const TRUSTED_PROXIES = "trusted_proxies";
35 } shape;
36
37public:
41
45 explicit HttpComponent(std::shared_ptr<EnvironmentConfiguration> environmentConfiguration);
46
54 std::vector<std::shared_ptr<Entry>>
55 parse(const std::string &content, int32_t lineOffset, const std::string &fileName) override;
56};
57
58}// namespace lintel
59#endif// LINTEL_HTTPCOMPONENT_H
Definition Component.h:13
Definition HttpComponent.h:13
std::vector< std::shared_ptr< Entry > > parse(const std::string &content, int32_t lineOffset, const std::string &fileName) override
HttpComponent(std::shared_ptr< EnvironmentConfiguration > environmentConfiguration)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9