Line data Source code
1 : #include "source/common/router/debug_config.h" 2 : 3 : #include "source/common/common/macros.h" 4 : 5 : namespace Envoy { 6 : namespace Router { 7 : 8 : DebugConfig::DebugConfig(bool append_cluster, absl::optional<Http::LowerCaseString> cluster_header, 9 : bool append_upstream_host, 10 : absl::optional<Http::LowerCaseString> hostname_header, 11 : absl::optional<Http::LowerCaseString> host_address_header, 12 : bool do_not_forward, 13 : absl::optional<Http::LowerCaseString> not_forwarded_header) 14 : : append_cluster_(append_cluster), cluster_header_(std::move(cluster_header)), 15 : append_upstream_host_(append_upstream_host), hostname_header_(std::move(hostname_header)), 16 : host_address_header_(std::move(host_address_header)), do_not_forward_(do_not_forward), 17 0 : not_forwarded_header_(std::move(not_forwarded_header)) {} 18 : 19 459 : const std::string& DebugConfig::key() { 20 459 : CONSTRUCT_ON_FIRST_USE(std::string, "envoy.router.debug_config"); 21 459 : } 22 : 23 : } // namespace Router 24 : } // namespace Envoy