1
#pragma once
2

            
3
#include "envoy/config/core/v3/protocol.pb.h"
4
#include "envoy/http/codec.h"
5
#include "envoy/protobuf/message_validator.h"
6
#include "envoy/server/factory_context.h"
7

            
8
namespace Envoy {
9
namespace Http {
10
namespace Http1 {
11

            
12
/**
13
 * @return Http1Settings An Http1Settings populated from the
14
 * envoy::config::core::v3::Http1ProtocolOptions config.
15
 */
16
Http1Settings parseHttp1Settings(const envoy::config::core::v3::Http1ProtocolOptions& config,
17
                                 Server::Configuration::CommonFactoryContext& context,
18
                                 ProtobufMessage::ValidationVisitor& validation_visitor);
19

            
20
Http1Settings parseHttp1Settings(const envoy::config::core::v3::Http1ProtocolOptions& config,
21
                                 Server::Configuration::CommonFactoryContext& context,
22
                                 ProtobufMessage::ValidationVisitor& validation_visitor,
23
                                 const Protobuf::BoolValue& hcm_stream_error, bool validate_scheme);
24

            
25
} // namespace Http1
26
} // namespace Http
27
} // namespace Envoy