Line data Source code
1 : #pragma once 2 : 3 : #include "envoy/network/address.h" 4 : #include "envoy/stream_info/filter_state.h" 5 : 6 : #include "absl/container/flat_hash_set.h" 7 : 8 : namespace Envoy { 9 : namespace StreamInfo { 10 : 11 : /* 12 : * A FilterState object that wraps a network address shared pointer. 13 : */ 14 : class UpstreamAddress : public FilterState::Object { 15 : public: 16 0 : static const std::string& key() { 17 0 : CONSTRUCT_ON_FIRST_USE(std::string, "envoy.stream.upstream_address"); 18 0 : } 19 : 20 : Network::Address::InstanceConstSharedPtr address_; 21 : }; 22 : 23 : } // namespace StreamInfo 24 : } // namespace Envoy