Alanxtl commented on code in PR #841:
URL: https://github.com/apache/dubbo-go-pixiu/pull/841#discussion_r2629871342


##########
pkg/config/api_config.go:
##########
@@ -466,3 +464,237 @@ func getCheckRatelimitRegexp() *regexp.Regexp {
 func RegisterConfigListener(li APIConfigResourceListener) {
        listener = li
 }
+
+// HTTPVerb defines the restful api http verb
+type HTTPVerb string
+
+const (
+       // MethodAny any method
+       MethodAny HTTPVerb = "ANY"
+       // MethodGet get
+       MethodGet HTTPVerb = "GET"
+       // MethodHead head
+       MethodHead HTTPVerb = "HEAD"
+       // MethodPost post
+       MethodPost HTTPVerb = "POST"
+       // MethodPut put
+       MethodPut HTTPVerb = "PUT"
+       // MethodPatch patch
+       MethodPatch HTTPVerb = "PATCH" // RFC 5789
+       // MethodDelete delete
+       MethodDelete HTTPVerb = "DELETE"
+       // MethodOptions options
+       MethodOptions HTTPVerb = "OPTIONS"
+)
+
+// RequestType describes the type of the request. could be DUBBO/HTTP and 
others that we might implement in the future
+type RequestType string
+
+const (
+       // DubboRequest represents the dubbo request
+       DubboRequest RequestType = "dubbo"
+       // HTTPRequest represents the http request
+       HTTPRequest RequestType = "http"
+       // GRPCRequest represents the grpc request
+       GRPCRequest RequestType = "grpc"
+)

Review Comment:
   put it in the correct place of `pkg/common/constant`, u can create a new file



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to