Documentation ¶
Index ¶
- type HeaderManipulation
- func (*HeaderManipulation) Descriptor() ([]byte, []int)
- func (this *HeaderManipulation) Equal(that interface{}) bool
- func (m *HeaderManipulation) GetRequestHeadersToAdd() []*core.HeaderValueOption
- func (m *HeaderManipulation) GetRequestHeadersToRemove() []string
- func (m *HeaderManipulation) GetResponseHeadersToAdd() []*HeaderValueOption
- func (m *HeaderManipulation) GetResponseHeadersToRemove() []string
- func (m *HeaderManipulation) Hash(hasher hash.Hash64) (uint64, error)
- func (*HeaderManipulation) ProtoMessage()
- func (m *HeaderManipulation) Reset()
- func (m *HeaderManipulation) String() string
- func (m *HeaderManipulation) XXX_DiscardUnknown()
- func (m *HeaderManipulation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeaderManipulation) XXX_Merge(src proto.Message)
- func (m *HeaderManipulation) XXX_Size() int
- func (m *HeaderManipulation) XXX_Unmarshal(b []byte) error
- type HeaderValue
- func (*HeaderValue) Descriptor() ([]byte, []int)
- func (this *HeaderValue) Equal(that interface{}) bool
- func (m *HeaderValue) GetKey() string
- func (m *HeaderValue) GetValue() string
- func (m *HeaderValue) Hash(hasher hash.Hash64) (uint64, error)
- func (*HeaderValue) ProtoMessage()
- func (m *HeaderValue) Reset()
- func (m *HeaderValue) String() string
- func (m *HeaderValue) XXX_DiscardUnknown()
- func (m *HeaderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeaderValue) XXX_Merge(src proto.Message)
- func (m *HeaderValue) XXX_Size() int
- func (m *HeaderValue) XXX_Unmarshal(b []byte) error
- type HeaderValueOption
- func (*HeaderValueOption) Descriptor() ([]byte, []int)
- func (this *HeaderValueOption) Equal(that interface{}) bool
- func (m *HeaderValueOption) GetAppend() *types.BoolValue
- func (m *HeaderValueOption) GetHeader() *HeaderValue
- func (m *HeaderValueOption) Hash(hasher hash.Hash64) (uint64, error)
- func (*HeaderValueOption) ProtoMessage()
- func (m *HeaderValueOption) Reset()
- func (m *HeaderValueOption) String() string
- func (m *HeaderValueOption) XXX_DiscardUnknown()
- func (m *HeaderValueOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeaderValueOption) XXX_Merge(src proto.Message)
- func (m *HeaderValueOption) XXX_Size() int
- func (m *HeaderValueOption) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderManipulation ¶
type HeaderManipulation struct { // Specifies a list of HTTP headers that should be added to each request // handled by this route or virtual host. For more information, including // details on header value syntax, see the // [Envoy documentation](https://www.envoyproxy.io/docs/envoy/latest/configuration/http_conn_man/headers#config-http-conn-man-headers-custom-request-headers) . RequestHeadersToAdd []*core.HeaderValueOption `protobuf:"bytes,1,rep,name=request_headers_to_add,json=requestHeadersToAdd,proto3" json:"request_headers_to_add,omitempty"` // Specifies a list of HTTP headers that should be removed from each request // handled by this route or virtual host. RequestHeadersToRemove []string `` /* 131-byte string literal not displayed */ // Specifies a list of HTTP headers that should be added to each response // handled by this route or host. For more information, including // details on header value syntax, see the // [Envoy documentation](https://www.envoyproxy.io/docs/envoy/latest/configuration/http_conn_man/headers#config-http-conn-man-headers-custom-request-headers) . ResponseHeadersToAdd []*HeaderValueOption `protobuf:"bytes,3,rep,name=response_headers_to_add,json=responseHeadersToAdd,proto3" json:"response_headers_to_add,omitempty"` // Specifies a list of HTTP headers that should be removed from each response // handled by this route or virtual host. ResponseHeadersToRemove []string `` /* 134-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This plugin provides configuration options to append and remove headers from requests and responses HeaderManipulation can be specified on routes, virtual hosts, or weighted destinations
func (*HeaderManipulation) Descriptor ¶
func (*HeaderManipulation) Descriptor() ([]byte, []int)
func (*HeaderManipulation) Equal ¶
func (this *HeaderManipulation) Equal(that interface{}) bool
func (*HeaderManipulation) GetRequestHeadersToAdd ¶
func (m *HeaderManipulation) GetRequestHeadersToAdd() []*core.HeaderValueOption
func (*HeaderManipulation) GetRequestHeadersToRemove ¶
func (m *HeaderManipulation) GetRequestHeadersToRemove() []string
func (*HeaderManipulation) GetResponseHeadersToAdd ¶
func (m *HeaderManipulation) GetResponseHeadersToAdd() []*HeaderValueOption
func (*HeaderManipulation) GetResponseHeadersToRemove ¶
func (m *HeaderManipulation) GetResponseHeadersToRemove() []string
func (*HeaderManipulation) Hash ¶ added in v1.2.13
func (m *HeaderManipulation) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*HeaderManipulation) ProtoMessage ¶
func (*HeaderManipulation) ProtoMessage()
func (*HeaderManipulation) Reset ¶
func (m *HeaderManipulation) Reset()
func (*HeaderManipulation) String ¶
func (m *HeaderManipulation) String() string
func (*HeaderManipulation) XXX_DiscardUnknown ¶
func (m *HeaderManipulation) XXX_DiscardUnknown()
func (*HeaderManipulation) XXX_Marshal ¶
func (m *HeaderManipulation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeaderManipulation) XXX_Merge ¶
func (m *HeaderManipulation) XXX_Merge(src proto.Message)
func (*HeaderManipulation) XXX_Size ¶
func (m *HeaderManipulation) XXX_Size() int
func (*HeaderManipulation) XXX_Unmarshal ¶
func (m *HeaderManipulation) XXX_Unmarshal(b []byte) error
type HeaderValue ¶
type HeaderValue struct { // Header name. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Header value. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Header name/value pair.
func (*HeaderValue) Descriptor ¶
func (*HeaderValue) Descriptor() ([]byte, []int)
func (*HeaderValue) Equal ¶
func (this *HeaderValue) Equal(that interface{}) bool
func (*HeaderValue) GetKey ¶
func (m *HeaderValue) GetKey() string
func (*HeaderValue) GetValue ¶
func (m *HeaderValue) GetValue() string
func (*HeaderValue) Hash ¶ added in v1.2.13
func (m *HeaderValue) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*HeaderValue) ProtoMessage ¶
func (*HeaderValue) ProtoMessage()
func (*HeaderValue) Reset ¶
func (m *HeaderValue) Reset()
func (*HeaderValue) String ¶
func (m *HeaderValue) String() string
func (*HeaderValue) XXX_DiscardUnknown ¶
func (m *HeaderValue) XXX_DiscardUnknown()
func (*HeaderValue) XXX_Marshal ¶
func (m *HeaderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeaderValue) XXX_Merge ¶
func (m *HeaderValue) XXX_Merge(src proto.Message)
func (*HeaderValue) XXX_Size ¶
func (m *HeaderValue) XXX_Size() int
func (*HeaderValue) XXX_Unmarshal ¶
func (m *HeaderValue) XXX_Unmarshal(b []byte) error
type HeaderValueOption ¶
type HeaderValueOption struct { // Header name/value pair that this option applies to. Header *HeaderValue `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // Should the value be appended? If true (default), the value is appended to // existing values. Append *types.BoolValue `protobuf:"bytes,2,opt,name=append,proto3" json:"append,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Header name/value pair plus option to control append behavior.
func (*HeaderValueOption) Descriptor ¶
func (*HeaderValueOption) Descriptor() ([]byte, []int)
func (*HeaderValueOption) Equal ¶
func (this *HeaderValueOption) Equal(that interface{}) bool
func (*HeaderValueOption) GetAppend ¶
func (m *HeaderValueOption) GetAppend() *types.BoolValue
func (*HeaderValueOption) GetHeader ¶
func (m *HeaderValueOption) GetHeader() *HeaderValue
func (*HeaderValueOption) Hash ¶ added in v1.2.13
func (m *HeaderValueOption) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*HeaderValueOption) ProtoMessage ¶
func (*HeaderValueOption) ProtoMessage()
func (*HeaderValueOption) Reset ¶
func (m *HeaderValueOption) Reset()
func (*HeaderValueOption) String ¶
func (m *HeaderValueOption) String() string
func (*HeaderValueOption) XXX_DiscardUnknown ¶
func (m *HeaderValueOption) XXX_DiscardUnknown()
func (*HeaderValueOption) XXX_Marshal ¶
func (m *HeaderValueOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeaderValueOption) XXX_Merge ¶
func (m *HeaderValueOption) XXX_Merge(src proto.Message)
func (*HeaderValueOption) XXX_Size ¶
func (m *HeaderValueOption) XXX_Size() int
func (*HeaderValueOption) XXX_Unmarshal ¶
func (m *HeaderValueOption) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.