diff --git a/api/accesslog.proto b/api/accesslog.proto index ce95d240..421c00ea 100644 --- a/api/accesslog.proto +++ b/api/accesslog.proto @@ -10,17 +10,6 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; message EnvoyAccessLog { - enum RequestMethod { - METHOD_UNSPECIFIED = 0; - GET = 1; - HEAD = 2; - POST = 3; - PUT = 4; - DELETE = 5; - CONNECT = 6; - OPTIONS = 7; - TRACE = 8; - } // The HTTP request method (RFC 7231/2616) RequestMethod request_method = 1; diff --git a/api/base.proto b/api/base.proto index e7a02e74..05a00106 100644 --- a/api/base.proto +++ b/api/base.proto @@ -82,6 +82,19 @@ enum RoutingPriority { HIGH = 1; } +// HTTP request method +enum RequestMethod { + METHOD_UNSPECIFIED = 0; + GET = 1; + HEAD = 2; + POST = 3; + PUT = 4; + DELETE = 5; + CONNECT = 6; + OPTIONS = 7; + TRACE = 8; +} + // Header name/value pair. message HeaderValue { // Header name. diff --git a/api/rds.proto b/api/rds.proto index 532df41d..1669fc0e 100644 --- a/api/rds.proto +++ b/api/rds.proto @@ -279,7 +279,7 @@ message VirtualCluster { // Optionally specifies the HTTP method to match on. For example GET, PUT, // etc. - string method = 3; + RequestMethod method = 3; } // See