higress-group/higress

Dubbo协议转换的参数匹配

Open

#498 opened on Aug 24, 2023

 (11 comments) (0 reactions) (1 assignee)Go (1,219 forks)github user discovery
area/dubbogood first issuesig/controller

Repository metrics

Stars
 (9,036 stars)
PR merge metrics
 (Avg merge 7d 9h) (18 merged PRs in 30d)

Description

目前看代码和文档,发现http请求转换到dubbo接口上的参数,是根据参数顺序来的,而和dubbo接口上参数的名称无关。 这样设计有什么原因吗?感觉有些反直觉。

另外我如果希望把一整个json body都塞进一个map里(没有paramkey),有办法实现吗? 例如 { "a":1, "b":2 } 这样的jsonbody,转成一个包含两个entry的map。

Contributor guide