You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.5 KiB
62 lines
2.5 KiB
7 years ago
|
// [#protodoc-title: Protocol options]
|
||
|
|
||
7 years ago
|
syntax = "proto3";
|
||
|
|
||
|
package envoy.api.v2;
|
||
|
|
||
|
import "google/protobuf/wrappers.proto";
|
||
|
|
||
7 years ago
|
import "validate/validate.proto";
|
||
|
|
||
7 years ago
|
// [#protodoc-title: Protocol options]
|
||
|
|
||
|
// [#not-implemented-hide:]
|
||
7 years ago
|
message TcpProtocolOptions {
|
||
|
}
|
||
|
|
||
|
message Http1ProtocolOptions {
|
||
7 years ago
|
// Handle HTTP requests with absolute URLs in the requests. These requests
|
||
|
// are generally sent by clients to forward/explicit proxies. This allows clients to configure
|
||
|
// envoy as their HTTP proxy. In Unix, for example, this is typically done by setting the
|
||
|
// *http_proxy* environment variable.
|
||
7 years ago
|
google.protobuf.BoolValue allow_absolute_url = 1;
|
||
7 years ago
|
}
|
||
|
|
||
|
message Http2ProtocolOptions {
|
||
7 years ago
|
// `Maximum table size <http://httpwg.org/specs/rfc7541.html#rfc.section.4.2>`_
|
||
|
// (in octets) that the encoder is permitted to use for the dynamic HPACK table. Valid values
|
||
|
// range from 0 to 4294967295 (2^32 - 1) and defaults to 4096. 0 effectively disables header
|
||
|
// compression.
|
||
7 years ago
|
google.protobuf.UInt32Value hpack_table_size = 1;
|
||
7 years ago
|
|
||
|
// `Maximum concurrent streams <http://httpwg.org/specs/rfc7540.html#rfc.section.5.1.2>`_
|
||
|
// allowed for peer on one HTTP/2 connection. Valid values range from 1 to 2147483647 (2^31 - 1)
|
||
|
// and defaults to 2147483647.
|
||
7 years ago
|
google.protobuf.UInt32Value max_concurrent_streams = 2
|
||
|
[(validate.rules).uint32 = {gte: 1, lte: 2147483647}];
|
||
7 years ago
|
|
||
|
// `Initial stream-level flow-control window
|
||
|
// <http://httpwg.org/specs/rfc7540.html#rfc.section.6.9.2>`_ size. Valid values range from 65535
|
||
|
// (2^16 - 1, HTTP/2 default) to 2147483647 (2^31 - 1, HTTP/2 maximum) and defaults to 268435456
|
||
|
// (256 * 1024 * 1024).
|
||
|
//
|
||
|
// NOTE: 65535 is the initial window size from HTTP/2 spec. We only support increasing the default
|
||
|
// window size now, so it's also the minimum.
|
||
|
|
||
|
// This field also acts as a soft limit on the number of bytes Envoy will buffer per-stream in the
|
||
7 years ago
|
// HTTP/2 codec buffers. Once the buffer reaches this pointer, watermark callbacks will fire to
|
||
7 years ago
|
// stop the flow of data to the codec buffers.
|
||
7 years ago
|
google.protobuf.UInt32Value initial_stream_window_size = 3
|
||
|
[(validate.rules).uint32 = {gte: 65535, lte: 2147483647}];
|
||
7 years ago
|
|
||
|
// Similar to *initial_stream_window_size*, but for connection-level flow-control
|
||
|
// window. Currently, this has the same minimum/maximum/default as *initial_stream_window_size*.
|
||
7 years ago
|
google.protobuf.UInt32Value initial_connection_window_size = 4
|
||
|
[(validate.rules).uint32 = {gte: 65535, lte: 2147483647}];
|
||
7 years ago
|
}
|
||
|
|
||
7 years ago
|
// [#not-implemented-hide:]
|
||
7 years ago
|
message GrpcProtocolOptions {
|
||
|
Http2ProtocolOptions http2_protocol_options = 1;
|
||
|
}
|