Documentation ¶
Index ¶
- Variables
- type Http1CodecConfig
- func (*Http1CodecConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Http1CodecConfig) GetMaxBufferSize() *wrapperspb.UInt32Value
- func (x *Http1CodecConfig) GetSingleFrameMode() *wrapperspb.BoolValue
- func (*Http1CodecConfig) ProtoMessage()
- func (x *Http1CodecConfig) ProtoReflect() protoreflect.Message
- func (x *Http1CodecConfig) Reset()
- func (x *Http1CodecConfig) String() string
- func (m *Http1CodecConfig) Validate() error
- func (m *Http1CodecConfig) ValidateAll() error
- type Http1CodecConfigMultiError
- type Http1CodecConfigValidationError
- func (e Http1CodecConfigValidationError) Cause() error
- func (e Http1CodecConfigValidationError) Error() string
- func (e Http1CodecConfigValidationError) ErrorName() string
- func (e Http1CodecConfigValidationError) Field() string
- func (e Http1CodecConfigValidationError) Key() bool
- func (e Http1CodecConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_contrib_envoy_extensions_filters_network_generic_proxy_codecs_http1_v3_http1_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Http1CodecConfig ¶
type Http1CodecConfig struct { // If true, the codec will parse and serialize HTTP1 messages in a single frame per message. // // A frame is a minimal unit of data that can be processed by the generic proxy. If false, the // codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec // will output multiple frames for a single HTTP1 message to the generic proxy. // If true, the codec will buffer the entire HTTP1 message body before sending it to the generic // proxy. This may have better performance in small message scenarios and is more friendly to // handle the HTTP1 message body. This also may result in higher memory usage and latency if // the message body is large. // // Default is true. SingleFrameMode *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=single_frame_mode,json=singleFrameMode,proto3" json:"single_frame_mode,omitempty"` // The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used. // This only makes sense when single_frame_mode is true. // If the HTTP1 message body size exceeds this value, this will result in a decoding error // and the generic proxy will close the connection. MaxBufferSize *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=max_buffer_size,json=maxBufferSize,proto3" json:"max_buffer_size,omitempty"` // contains filtered or unexported fields }
Configuration for HTTP codec. This HTTP1 codec is used to parse and serialize HTTP1 messages for the generic proxy filter. Any decoding error will result in the generic proxy closing the connection.
.. note::
This codec only supports HTTP1.1 messages and does not support HTTP1.0 messages. And it limits part of the HTTP1.1 features, such as upgrade, connect, etc. This codec is mainly designed for the features evaluation of the generic proxy filter. Please be cautious when using it in production.
func (*Http1CodecConfig) Descriptor
deprecated
func (*Http1CodecConfig) Descriptor() ([]byte, []int)
Deprecated: Use Http1CodecConfig.ProtoReflect.Descriptor instead.
func (*Http1CodecConfig) GetMaxBufferSize ¶
func (x *Http1CodecConfig) GetMaxBufferSize() *wrapperspb.UInt32Value
func (*Http1CodecConfig) GetSingleFrameMode ¶
func (x *Http1CodecConfig) GetSingleFrameMode() *wrapperspb.BoolValue
func (*Http1CodecConfig) ProtoMessage ¶
func (*Http1CodecConfig) ProtoMessage()
func (*Http1CodecConfig) ProtoReflect ¶
func (x *Http1CodecConfig) ProtoReflect() protoreflect.Message
func (*Http1CodecConfig) Reset ¶
func (x *Http1CodecConfig) Reset()
func (*Http1CodecConfig) String ¶
func (x *Http1CodecConfig) String() string
func (*Http1CodecConfig) Validate ¶
func (m *Http1CodecConfig) Validate() error
Validate checks the field values on Http1CodecConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Http1CodecConfig) ValidateAll ¶
func (m *Http1CodecConfig) ValidateAll() error
ValidateAll checks the field values on Http1CodecConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Http1CodecConfigMultiError, or nil if none found.
type Http1CodecConfigMultiError ¶
type Http1CodecConfigMultiError []error
Http1CodecConfigMultiError is an error wrapping multiple validation errors returned by Http1CodecConfig.ValidateAll() if the designated constraints aren't met.
func (Http1CodecConfigMultiError) AllErrors ¶
func (m Http1CodecConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Http1CodecConfigMultiError) Error ¶
func (m Http1CodecConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Http1CodecConfigValidationError ¶
type Http1CodecConfigValidationError struct {
// contains filtered or unexported fields
}
Http1CodecConfigValidationError is the validation error returned by Http1CodecConfig.Validate if the designated constraints aren't met.
func (Http1CodecConfigValidationError) Cause ¶
func (e Http1CodecConfigValidationError) Cause() error
Cause function returns cause value.
func (Http1CodecConfigValidationError) Error ¶
func (e Http1CodecConfigValidationError) Error() string
Error satisfies the builtin error interface
func (Http1CodecConfigValidationError) ErrorName ¶
func (e Http1CodecConfigValidationError) ErrorName() string
ErrorName returns error name.
func (Http1CodecConfigValidationError) Field ¶
func (e Http1CodecConfigValidationError) Field() string
Field function returns field value.
func (Http1CodecConfigValidationError) Key ¶
func (e Http1CodecConfigValidationError) Key() bool
Key function returns key value.
func (Http1CodecConfigValidationError) Reason ¶
func (e Http1CodecConfigValidationError) Reason() string
Reason function returns reason value.