Lines
100 %
Functions
#pragma once
#include <vector>
#include "envoy/extensions/matching/input_matchers/metadata/v3/metadata.pb.h"
#include "envoy/matcher/matcher.h"
#include "envoy/type/matcher/v3/value.pb.h"
#include "source/common/common/matchers.h"
#include "source/extensions/matching/http/metadata_input/meta_input.h"
namespace Envoy {
namespace Extensions {
namespace Matching {
namespace InputMatchers {
namespace Metadata {
class Matcher : public Envoy::Matcher::InputMatcher, Logger::Loggable<Logger::Id::filter> {
public:
Matcher(const Envoy::Matchers::ValueMatcherConstSharedPtr, const bool);
::Envoy::Matcher::MatchResult match(const Envoy::Matcher::DataInputGetResult& input) override;
private:
Envoy::Matchers::ValueMatcherConstSharedPtr value_matcher_;
bool invert_;
};
} // namespace Metadata
} // namespace InputMatchers
} // namespace Matching
} // namespace Extensions
} // namespace Envoy