xref: /aosp_15_r20/external/grpc-grpc/src/proto/grpc/testing/xds/v3/path.proto (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1//
2// Copyright 2021 gRPC authors.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// Local copy of Envoy xDS proto file, used for testing only.
18
19syntax = "proto3";
20
21package envoy.type.matcher.v3;
22
23import "src/proto/grpc/testing/xds/v3/string.proto";
24
25// [#protodoc-title: Path matcher]
26
27// Specifies the way to match a path on HTTP request.
28message PathMatcher {
29  oneof rule {
30    // The `path` must match the URL path portion of the :path header. The query and fragment
31    // string (if present) are removed in the URL path portion.
32    // For example, the path */data* will match the *:path* header */data#fragment?param=value*.
33    StringMatcher path = 1;
34  }
35}
36