LCOV - code coverage report
Current view: top level - source/extensions/http/early_header_mutation/header_mutation - header_mutation.cc (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 0 5 0.0 %
Date: 2024-01-05 06:35:25 Functions: 0 2 0.0 %

          Line data    Source code
       1             : #include "source/extensions/http/early_header_mutation/header_mutation/header_mutation.h"
       2             : 
       3             : #include "envoy/config/common/mutation_rules/v3/mutation_rules.pb.h"
       4             : 
       5             : #include "source/common/http/header_map_impl.h"
       6             : 
       7             : namespace Envoy {
       8             : namespace Extensions {
       9             : namespace Http {
      10             : namespace EarlyHeaderMutation {
      11             : namespace HeaderMutation {
      12             : 
      13             : HeaderMutation::HeaderMutation(const ProtoHeaderMutation& mutations)
      14           0 :     : mutations_(mutations.mutations()) {}
      15             : 
      16             : bool HeaderMutation::mutate(Envoy::Http::RequestHeaderMap& headers,
      17           0 :                             const StreamInfo::StreamInfo& stream_info) const {
      18           0 :   mutations_.evaluateHeaders(headers, {&headers}, stream_info);
      19           0 :   return true;
      20           0 : }
      21             : 
      22             : } // namespace HeaderMutation
      23             : } // namespace EarlyHeaderMutation
      24             : } // namespace Http
      25             : } // namespace Extensions
      26             : } // namespace Envoy

Generated by: LCOV version 1.15