@@ -9,25 +9,13 @@ mod prelude {
99 pub use std:: collections:: BTreeMap ;
1010}
1111use self :: prelude:: * ;
12- /// GRPCRouteFilter defines processing steps that must be completed during the
13- /// request or response lifecycle. GRPCRouteFilters are meant as an extension
14- /// point to express processing that may be done in Gateway implementations. Some
15- /// examples include request or response modification, implementing
16- /// authentication strategies, rate-limiting, and traffic shaping. API
17- /// guarantee/conformance is defined based on the type of the filter.
1812#[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
1913pub enum GRPCFilterType {
2014 ResponseHeaderModifier ,
2115 RequestHeaderModifier ,
2216 RequestMirror ,
2317 ExtensionRef ,
2418}
25- /// HTTPRouteFilter defines processing steps that must be completed during the
26- /// request or response lifecycle. HTTPRouteFilters are meant as an extension
27- /// point to express processing that may be done in Gateway implementations. Some
28- /// examples include request or response modification, implementing
29- /// authentication strategies, rate-limiting, and traffic shaping. API
30- /// guarantee/conformance is defined based on the type of the filter.
3119#[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
3220pub enum HTTPFilterType {
3321 RequestHeaderModifier ,
@@ -38,60 +26,35 @@ pub enum HTTPFilterType {
3826 UrlRewrite ,
3927 ExtensionRef ,
4028}
41- /// GRPCHeaderMatch describes how to select a gRPC route by matching gRPC request
42- /// headers.
4329#[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
4430pub enum HeaderMatchType {
4531 Exact ,
4632 RegularExpression ,
4733}
48- /// CookieConfig provides configuration settings that are specific
49- /// to cookie-based session persistence.
50- ///
51- /// Support: Core
5234#[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
5335pub enum PersistenceCookieConfigLifetime {
5436 Permanent ,
5537 Session ,
5638}
57- /// RequestRedirect defines a schema for a filter that responds to the
58- /// request with an HTTP redirection.
59- ///
60- /// Support: Core
6139#[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
6240pub enum RedirectStatusCode {
6341 #[ serde( rename = "301" ) ]
6442 r#_301,
6543 #[ serde( rename = "302" ) ]
6644 r#_302,
6745}
68- /// Path defines parameters used to modify the path of the incoming request.
69- /// The modified path is then used to construct the `Location` header. When
70- /// empty, the request path is used as-is.
71- ///
72- /// Support: Extended
7346#[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
7447pub enum RequestOperationType {
7548 ReplaceFullPath ,
7649 ReplacePrefixMatch ,
7750}
78- /// RequestRedirect defines a schema for a filter that responds to the
79- /// request with an HTTP redirection.
80- ///
81- /// Support: Core
8251#[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
8352pub enum RequestRedirectScheme {
8453 #[ serde( rename = "http" ) ]
8554 Http ,
8655 #[ serde( rename = "https" ) ]
8756 Https ,
8857}
89- /// SessionPersistence defines and configures session persistence
90- /// for the route rule.
91- ///
92- /// Support: Extended
93- ///
94- ///
9558#[ derive( Serialize , Deserialize , Clone , Debug , JsonSchema , PartialEq ) ]
9659pub enum SessionPersistenceType {
9760 Cookie ,
0 commit comments