I found a "get" route will match both HTTP GET and HTTP POST requests. For example:
rpc aaa(User) returns (User) {
option (google.api.http) = {
get: "/api/v1/aaa"
};
It matches both curl -v -X GET -k https://127.0.0.1/api/v1/aaa
and curl -v -X POST -k https://127.0.0.1/api/v1/aaa
.
I was wondering if it's possible to strictly match all routes including methods?