package http_11_proxyv3
import "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/http_11_proxy/v3"
Index ¶
- Variables
- type Http11ProxyUpstreamTransport
- func (*Http11ProxyUpstreamTransport) Descriptor() ([]byte, []int)
- func (x *Http11ProxyUpstreamTransport) GetTransportSocket() *v3.TransportSocket
- func (*Http11ProxyUpstreamTransport) ProtoMessage()
- func (x *Http11ProxyUpstreamTransport) ProtoReflect() protoreflect.Message
- func (x *Http11ProxyUpstreamTransport) Reset()
- func (x *Http11ProxyUpstreamTransport) String() string
- func (m *Http11ProxyUpstreamTransport) Validate() error
- func (m *Http11ProxyUpstreamTransport) ValidateAll() error
- type Http11ProxyUpstreamTransportMultiError
- func (m Http11ProxyUpstreamTransportMultiError) AllErrors() []error
- func (m Http11ProxyUpstreamTransportMultiError) Error() string
- type Http11ProxyUpstreamTransportValidationError
- func (e Http11ProxyUpstreamTransportValidationError) Cause() error
- func (e Http11ProxyUpstreamTransportValidationError) Error() string
- func (e Http11ProxyUpstreamTransportValidationError) ErrorName() string
- func (e Http11ProxyUpstreamTransportValidationError) Field() string
- func (e Http11ProxyUpstreamTransportValidationError) Key() bool
- func (e Http11ProxyUpstreamTransportValidationError) Reason() string
Variables ¶
var File_envoy_extensions_transport_sockets_http_11_proxy_v3_upstream_http_11_connect_proto protoreflect.FileDescriptor
Types ¶
type Http11ProxyUpstreamTransport ¶
type Http11ProxyUpstreamTransport struct { // The underlying transport socket being wrapped. TransportSocket *v3.TransportSocket `protobuf:"bytes,1,opt,name=transport_socket,json=transportSocket,proto3" json:"transport_socket,omitempty"` // contains filtered or unexported fields }
The HTTP/1.1 proxy transport socket opens an upstream connection to a specified proxy address rather than the target host's address. If this transport socket is configured and proxy information is configured, then:
- Upstream connections to the proxy address will have a raw HTTP/1.1 CONNECT header prefaced to the payload, and 200 response stripped (if less than 200 bytes).
- Plaintext HTTP/1.1 connections will be sent with a fully qualified URL.
There are two primary ways to configure proxy information:
- An intermediate filter adds the stream info necessary for proxying to the stream info (as the test filter does :repo:`here <test/integration/filters/header_to_proxy_filter.cc>`).
- Setting the "typed_filter_metadata" in :ref:`LbEndpoint.Metadata <envoy_v3_api_field_config.endpoint.v3.lbendpoint.metadata>` or :ref:`LocalityLbEndpoints.Metadata <envoy_v3_api_field_config.endpoint.v3.LocalityLbEndpoints.metadata>` using the key "envoy.http11_proxy_transport_socket.proxy_address" and the proxy address in config::core::v3::Address format.
Some important notes regarding this transport socket:
- Configuration via stream info (as opposed to endpoint/locality metadata) will only proxy TLS connections to the proxy address on port 443. This is to maintain the original behavior of the transport socket when using this method of configuration.
- The transport socket is not compatible with HTTP/3 or plaintext HTTP/2.
func (*Http11ProxyUpstreamTransport) Descriptor ¶
func (*Http11ProxyUpstreamTransport) Descriptor() ([]byte, []int)
Deprecated: Use Http11ProxyUpstreamTransport.ProtoReflect.Descriptor instead.
func (*Http11ProxyUpstreamTransport) GetTransportSocket ¶
func (x *Http11ProxyUpstreamTransport) GetTransportSocket() *v3.TransportSocket
func (*Http11ProxyUpstreamTransport) ProtoMessage ¶
func (*Http11ProxyUpstreamTransport) ProtoMessage()
func (*Http11ProxyUpstreamTransport) ProtoReflect ¶
func (x *Http11ProxyUpstreamTransport) ProtoReflect() protoreflect.Message
func (*Http11ProxyUpstreamTransport) Reset ¶
func (x *Http11ProxyUpstreamTransport) Reset()
func (*Http11ProxyUpstreamTransport) String ¶
func (x *Http11ProxyUpstreamTransport) String() string
func (*Http11ProxyUpstreamTransport) Validate ¶
func (m *Http11ProxyUpstreamTransport) Validate() error
Validate checks the field values on Http11ProxyUpstreamTransport 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 (*Http11ProxyUpstreamTransport) ValidateAll ¶
func (m *Http11ProxyUpstreamTransport) ValidateAll() error
ValidateAll checks the field values on Http11ProxyUpstreamTransport 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 Http11ProxyUpstreamTransportMultiError, or nil if none found.
type Http11ProxyUpstreamTransportMultiError ¶
type Http11ProxyUpstreamTransportMultiError []error
Http11ProxyUpstreamTransportMultiError is an error wrapping multiple validation errors returned by Http11ProxyUpstreamTransport.ValidateAll() if the designated constraints aren't met.
func (Http11ProxyUpstreamTransportMultiError) AllErrors ¶
func (m Http11ProxyUpstreamTransportMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Http11ProxyUpstreamTransportMultiError) Error ¶
func (m Http11ProxyUpstreamTransportMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Http11ProxyUpstreamTransportValidationError ¶
type Http11ProxyUpstreamTransportValidationError struct {
// contains filtered or unexported fields
}
Http11ProxyUpstreamTransportValidationError is the validation error returned by Http11ProxyUpstreamTransport.Validate if the designated constraints aren't met.
func (Http11ProxyUpstreamTransportValidationError) Cause ¶
func (e Http11ProxyUpstreamTransportValidationError) Cause() error
Cause function returns cause value.
func (Http11ProxyUpstreamTransportValidationError) Error ¶
func (e Http11ProxyUpstreamTransportValidationError) Error() string
Error satisfies the builtin error interface
func (Http11ProxyUpstreamTransportValidationError) ErrorName ¶
func (e Http11ProxyUpstreamTransportValidationError) ErrorName() string
ErrorName returns error name.
func (Http11ProxyUpstreamTransportValidationError) Field ¶
func (e Http11ProxyUpstreamTransportValidationError) Field() string
Field function returns field value.
func (Http11ProxyUpstreamTransportValidationError) Key ¶
func (e Http11ProxyUpstreamTransportValidationError) Key() bool
Key function returns key value.
func (Http11ProxyUpstreamTransportValidationError) Reason ¶
func (e Http11ProxyUpstreamTransportValidationError) Reason() string
Reason function returns reason value.
Source Files ¶
upstream_http_11_connect.pb.go upstream_http_11_connect.pb.validate.go
- Version
- v0.13.0
- Published
- Aug 9, 2024
- Platform
- js/wasm
- Imports
- 19 packages
- Last checked
- 2 hours ago –
Tools for package owners.