uri_templatev3

package
v1.33.0-20240425200945... Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_path_match_uri_template_v3_uri_template_match_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type UriTemplateMatchConfig

type UriTemplateMatchConfig struct {
	PathTemplate string `protobuf:"bytes,1,opt,name=path_template,json=pathTemplate,proto3" json:"path_template,omitempty"`
	// contains filtered or unexported fields
}

If specified, the route is a template match rule meaning that the “:path“ header (without the query string) must match the given “path_template“ pattern.

Path template matching types:

* “*“ : Matches a single path component, up to the next path separator: /

* “**“ : Matches zero or more path segments. If present, must be the last operator.

* “{name} or {name=*}“ : A named variable matching one path segment up to the next path separator: /.

  • “{name=videos/*}“ : A named variable matching more than one path segment. The path component matching videos/* is captured as the named variable.

* “{name=**}“ : A named variable matching zero or more path segments.

For example:

* “/videos/*/*/*.m4s“ would match “videos/123414/hls/1080p5000_00001.m4s“

* “/videos/{file}“ would match “/videos/1080p5000_00001.m4s“

* “/**.mpd“ would match “/content/123/india/dash/55/manifest.mpd“

func (*UriTemplateMatchConfig) Descriptor deprecated

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

Deprecated: Use UriTemplateMatchConfig.ProtoReflect.Descriptor instead.

func (*UriTemplateMatchConfig) GetPathTemplate

func (x *UriTemplateMatchConfig) GetPathTemplate() string

func (*UriTemplateMatchConfig) ProtoMessage

func (*UriTemplateMatchConfig) ProtoMessage()

func (*UriTemplateMatchConfig) ProtoReflect

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

func (*UriTemplateMatchConfig) Reset

func (x *UriTemplateMatchConfig) Reset()

func (*UriTemplateMatchConfig) String

func (x *UriTemplateMatchConfig) String() string

Jump to

Keyboard shortcuts

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