public final class HttpProtocolOptions extends com.google.protobuf.GeneratedMessageV3 implements HttpProtocolOptionsOrBuilder
[#next-free-field: 6]Protobuf type
envoy.config.core.v4alpha.HttpProtocolOptions| Modifier and Type | Class and Description |
|---|---|
static class |
HttpProtocolOptions.Builder
[#next-free-field: 6]
Protobuf type
envoy.config.core.v4alpha.HttpProtocolOptions |
static class |
HttpProtocolOptions.HeadersWithUnderscoresAction
Action to take when Envoy receives client request with header names containing underscore
characters.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
HEADERS_WITH_UNDERSCORES_ACTION_FIELD_NUMBER |
static int |
IDLE_TIMEOUT_FIELD_NUMBER |
static int |
MAX_CONNECTION_DURATION_FIELD_NUMBER |
static int |
MAX_HEADERS_COUNT_FIELD_NUMBER |
static int |
MAX_STREAM_DURATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static HttpProtocolOptions |
getDefaultInstance() |
HttpProtocolOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
HttpProtocolOptions.HeadersWithUnderscoresAction |
getHeadersWithUnderscoresAction()
Action to take when a client request with a header name containing underscore characters is received.
|
int |
getHeadersWithUnderscoresActionValue()
Action to take when a client request with a header name containing underscore characters is received.
|
com.google.protobuf.Duration |
getIdleTimeout()
The idle timeout for connections.
|
com.google.protobuf.DurationOrBuilder |
getIdleTimeoutOrBuilder()
The idle timeout for connections.
|
com.google.protobuf.Duration |
getMaxConnectionDuration()
The maximum duration of a connection.
|
com.google.protobuf.DurationOrBuilder |
getMaxConnectionDurationOrBuilder()
The maximum duration of a connection.
|
com.google.protobuf.UInt32Value |
getMaxHeadersCount()
The maximum number of headers.
|
com.google.protobuf.UInt32ValueOrBuilder |
getMaxHeadersCountOrBuilder()
The maximum number of headers.
|
com.google.protobuf.Duration |
getMaxStreamDuration()
Total duration to keep alive an HTTP request/response stream.
|
com.google.protobuf.DurationOrBuilder |
getMaxStreamDurationOrBuilder()
Total duration to keep alive an HTTP request/response stream.
|
com.google.protobuf.Parser<HttpProtocolOptions> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasIdleTimeout()
The idle timeout for connections.
|
boolean |
hasMaxConnectionDuration()
The maximum duration of a connection.
|
boolean |
hasMaxHeadersCount()
The maximum number of headers.
|
boolean |
hasMaxStreamDuration()
Total duration to keep alive an HTTP request/response stream.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HttpProtocolOptions.Builder |
newBuilder() |
static HttpProtocolOptions.Builder |
newBuilder(HttpProtocolOptions prototype) |
HttpProtocolOptions.Builder |
newBuilderForType() |
protected HttpProtocolOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static HttpProtocolOptions |
parseDelimitedFrom(InputStream input) |
static HttpProtocolOptions |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpProtocolOptions |
parseFrom(byte[] data) |
static HttpProtocolOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpProtocolOptions |
parseFrom(ByteBuffer data) |
static HttpProtocolOptions |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpProtocolOptions |
parseFrom(com.google.protobuf.ByteString data) |
static HttpProtocolOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpProtocolOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HttpProtocolOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpProtocolOptions |
parseFrom(InputStream input) |
static HttpProtocolOptions |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<HttpProtocolOptions> |
parser() |
HttpProtocolOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int IDLE_TIMEOUT_FIELD_NUMBER
public static final int MAX_CONNECTION_DURATION_FIELD_NUMBER
public static final int MAX_HEADERS_COUNT_FIELD_NUMBER
public static final int MAX_STREAM_DURATION_FIELD_NUMBER
public static final int HEADERS_WITH_UNDERSCORES_ACTION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasIdleTimeout()
The idle timeout for connections. The idle timeout is defined as the period in which there are no active requests. When the idle timeout is reached the connection will be closed. If the connection is an HTTP/2 downstream connection a drain sequence will occur prior to closing the connection, see :ref:`drain_timeout <envoy_api_field_extensions.filters.network.http_connection_manager.v4alpha.HttpConnectionManager.drain_timeout>`. Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. If not specified, this defaults to 1 hour. To disable idle timeouts explicitly set this to 0. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc. If the :ref:`overload action <config_overload_manager_overload_actions>` "envoy.overload_actions.reduce_timeouts" is configured, this timeout is scaled for downstream connections according to the value for :ref:`HTTP_DOWNSTREAM_CONNECTION_IDLE <envoy_api_enum_value_config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.HTTP_DOWNSTREAM_CONNECTION_IDLE>`.
.google.protobuf.Duration idle_timeout = 1;hasIdleTimeout in interface HttpProtocolOptionsOrBuilderpublic com.google.protobuf.Duration getIdleTimeout()
The idle timeout for connections. The idle timeout is defined as the period in which there are no active requests. When the idle timeout is reached the connection will be closed. If the connection is an HTTP/2 downstream connection a drain sequence will occur prior to closing the connection, see :ref:`drain_timeout <envoy_api_field_extensions.filters.network.http_connection_manager.v4alpha.HttpConnectionManager.drain_timeout>`. Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. If not specified, this defaults to 1 hour. To disable idle timeouts explicitly set this to 0. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc. If the :ref:`overload action <config_overload_manager_overload_actions>` "envoy.overload_actions.reduce_timeouts" is configured, this timeout is scaled for downstream connections according to the value for :ref:`HTTP_DOWNSTREAM_CONNECTION_IDLE <envoy_api_enum_value_config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.HTTP_DOWNSTREAM_CONNECTION_IDLE>`.
.google.protobuf.Duration idle_timeout = 1;getIdleTimeout in interface HttpProtocolOptionsOrBuilderpublic com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
The idle timeout for connections. The idle timeout is defined as the period in which there are no active requests. When the idle timeout is reached the connection will be closed. If the connection is an HTTP/2 downstream connection a drain sequence will occur prior to closing the connection, see :ref:`drain_timeout <envoy_api_field_extensions.filters.network.http_connection_manager.v4alpha.HttpConnectionManager.drain_timeout>`. Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. If not specified, this defaults to 1 hour. To disable idle timeouts explicitly set this to 0. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc. If the :ref:`overload action <config_overload_manager_overload_actions>` "envoy.overload_actions.reduce_timeouts" is configured, this timeout is scaled for downstream connections according to the value for :ref:`HTTP_DOWNSTREAM_CONNECTION_IDLE <envoy_api_enum_value_config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.HTTP_DOWNSTREAM_CONNECTION_IDLE>`.
.google.protobuf.Duration idle_timeout = 1;getIdleTimeoutOrBuilder in interface HttpProtocolOptionsOrBuilderpublic boolean hasMaxConnectionDuration()
The maximum duration of a connection. The duration is defined as a period since a connection was established. If not set, there is no max duration. When max_connection_duration is reached the connection will be closed. Drain sequence will occur prior to closing the connection if if's applicable. See :ref:`drain_timeout <envoy_api_field_extensions.filters.network.http_connection_manager.v4alpha.HttpConnectionManager.drain_timeout>`. Note: not implemented for upstream connections.
.google.protobuf.Duration max_connection_duration = 3;hasMaxConnectionDuration in interface HttpProtocolOptionsOrBuilderpublic com.google.protobuf.Duration getMaxConnectionDuration()
The maximum duration of a connection. The duration is defined as a period since a connection was established. If not set, there is no max duration. When max_connection_duration is reached the connection will be closed. Drain sequence will occur prior to closing the connection if if's applicable. See :ref:`drain_timeout <envoy_api_field_extensions.filters.network.http_connection_manager.v4alpha.HttpConnectionManager.drain_timeout>`. Note: not implemented for upstream connections.
.google.protobuf.Duration max_connection_duration = 3;getMaxConnectionDuration in interface HttpProtocolOptionsOrBuilderpublic com.google.protobuf.DurationOrBuilder getMaxConnectionDurationOrBuilder()
The maximum duration of a connection. The duration is defined as a period since a connection was established. If not set, there is no max duration. When max_connection_duration is reached the connection will be closed. Drain sequence will occur prior to closing the connection if if's applicable. See :ref:`drain_timeout <envoy_api_field_extensions.filters.network.http_connection_manager.v4alpha.HttpConnectionManager.drain_timeout>`. Note: not implemented for upstream connections.
.google.protobuf.Duration max_connection_duration = 3;getMaxConnectionDurationOrBuilder in interface HttpProtocolOptionsOrBuilderpublic boolean hasMaxHeadersCount()
The maximum number of headers. If unconfigured, the default maximum number of request headers allowed is 100. Requests that exceed this limit will receive a 431 response for HTTP/1.x and cause a stream reset for HTTP/2.
.google.protobuf.UInt32Value max_headers_count = 2 [(.validate.rules) = { ... }hasMaxHeadersCount in interface HttpProtocolOptionsOrBuilderpublic com.google.protobuf.UInt32Value getMaxHeadersCount()
The maximum number of headers. If unconfigured, the default maximum number of request headers allowed is 100. Requests that exceed this limit will receive a 431 response for HTTP/1.x and cause a stream reset for HTTP/2.
.google.protobuf.UInt32Value max_headers_count = 2 [(.validate.rules) = { ... }getMaxHeadersCount in interface HttpProtocolOptionsOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getMaxHeadersCountOrBuilder()
The maximum number of headers. If unconfigured, the default maximum number of request headers allowed is 100. Requests that exceed this limit will receive a 431 response for HTTP/1.x and cause a stream reset for HTTP/2.
.google.protobuf.UInt32Value max_headers_count = 2 [(.validate.rules) = { ... }getMaxHeadersCountOrBuilder in interface HttpProtocolOptionsOrBuilderpublic boolean hasMaxStreamDuration()
Total duration to keep alive an HTTP request/response stream. If the time limit is reached the stream will be reset independent of any other timeouts. If not specified, this value is not set.
.google.protobuf.Duration max_stream_duration = 4;hasMaxStreamDuration in interface HttpProtocolOptionsOrBuilderpublic com.google.protobuf.Duration getMaxStreamDuration()
Total duration to keep alive an HTTP request/response stream. If the time limit is reached the stream will be reset independent of any other timeouts. If not specified, this value is not set.
.google.protobuf.Duration max_stream_duration = 4;getMaxStreamDuration in interface HttpProtocolOptionsOrBuilderpublic com.google.protobuf.DurationOrBuilder getMaxStreamDurationOrBuilder()
Total duration to keep alive an HTTP request/response stream. If the time limit is reached the stream will be reset independent of any other timeouts. If not specified, this value is not set.
.google.protobuf.Duration max_stream_duration = 4;getMaxStreamDurationOrBuilder in interface HttpProtocolOptionsOrBuilderpublic int getHeadersWithUnderscoresActionValue()
Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ALLOW. Note: upstream responses are not affected by this setting.
.envoy.config.core.v4alpha.HttpProtocolOptions.HeadersWithUnderscoresAction headers_with_underscores_action = 5;getHeadersWithUnderscoresActionValue in interface HttpProtocolOptionsOrBuilderpublic HttpProtocolOptions.HeadersWithUnderscoresAction getHeadersWithUnderscoresAction()
Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ALLOW. Note: upstream responses are not affected by this setting.
.envoy.config.core.v4alpha.HttpProtocolOptions.HeadersWithUnderscoresAction headers_with_underscores_action = 5;getHeadersWithUnderscoresAction in interface HttpProtocolOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HttpProtocolOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpProtocolOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpProtocolOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpProtocolOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpProtocolOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpProtocolOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpProtocolOptions parseFrom(InputStream input) throws IOException
IOExceptionpublic static HttpProtocolOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpProtocolOptions parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HttpProtocolOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpProtocolOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HttpProtocolOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic HttpProtocolOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HttpProtocolOptions.Builder newBuilder()
public static HttpProtocolOptions.Builder newBuilder(HttpProtocolOptions prototype)
public HttpProtocolOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HttpProtocolOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HttpProtocolOptions getDefaultInstance()
public static com.google.protobuf.Parser<HttpProtocolOptions> parser()
public com.google.protobuf.Parser<HttpProtocolOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HttpProtocolOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.