local_response_policyv3

package
v1.33.0-20240424200609... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_http_custom_response_local_response_policy_v3_local_response_policy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LocalResponsePolicy

type LocalResponsePolicy struct {

	// Optional new local reply body text. It will be used
	// in the “%LOCAL_REPLY_BODY%“ command operator in the “body_format“.
	Body *v3.DataSource `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Optional body format to be used for this response. If “body_format“ is  not
	// provided, and “body“ is, the contents of “body“ will be used to populate
	// the body of the local reply without formatting.
	BodyFormat *v3.SubstitutionFormatString `protobuf:"bytes,2,opt,name=body_format,json=bodyFormat,proto3" json:"body_format,omitempty"`
	// The new response status code if specified.
	StatusCode *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	// HTTP headers to add to the response. This allows the
	// response policy to append, to add or to override headers of
	// the original response for local body, or the custom response from the
	// remote body, before it is sent to a downstream client.
	ResponseHeadersToAdd []*v3.HeaderValueOption `protobuf:"bytes,4,rep,name=response_headers_to_add,json=responseHeadersToAdd,proto3" json:"response_headers_to_add,omitempty"`
	// contains filtered or unexported fields
}

Custom response policy to serve a locally stored response to the downstream.

func (*LocalResponsePolicy) Descriptor deprecated

func (*LocalResponsePolicy) Descriptor() ([]byte, []int)

Deprecated: Use LocalResponsePolicy.ProtoReflect.Descriptor instead.

func (*LocalResponsePolicy) GetBody

func (x *LocalResponsePolicy) GetBody() *v3.DataSource

func (*LocalResponsePolicy) GetBodyFormat

func (x *LocalResponsePolicy) GetBodyFormat() *v3.SubstitutionFormatString

func (*LocalResponsePolicy) GetResponseHeadersToAdd

func (x *LocalResponsePolicy) GetResponseHeadersToAdd() []*v3.HeaderValueOption

func (*LocalResponsePolicy) GetStatusCode

func (x *LocalResponsePolicy) GetStatusCode() *wrapperspb.UInt32Value

func (*LocalResponsePolicy) ProtoMessage

func (*LocalResponsePolicy) ProtoMessage()

func (*LocalResponsePolicy) ProtoReflect

func (x *LocalResponsePolicy) ProtoReflect() protoreflect.Message

func (*LocalResponsePolicy) Reset

func (x *LocalResponsePolicy) Reset()

func (*LocalResponsePolicy) String

func (x *LocalResponsePolicy) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL