-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need dubbo-proxy can handle with form post or queryString #15
Comments
I agree with you.
我觉得可以把version和group放到request header里面去,这样就可以不干扰普通的get请求。 二、 对与原来设计的请求参数
为了实现上面说的效果,不使用类似于过滤器的东西,好像是没有办法实现的吧 |
From me , I just want make it compatible with the old format. private Splitter queryStringSplitter = Splitter.on(",").trimResults().omitEmptyStrings();
if (params.containsKey("methodName")) {
methodName = params.get("methodName").get(0);
}
if (params.containsKey("paramTypes")) {
@SuppressWarnings("UnstableApiUsage") List<String> paramTypesList = queryStringSplitter.splitToList(params.get("paramTypes").get(0));
if (!paramTypesList.isEmpty()) {
paramTypes = paramTypesList.toArray(new String[]{});
}
}
if (methodName != null && serviceDefinition.getMethodName() == null) {
serviceDefinition.setMethodName(methodName);
}
if (paramTypes != null && serviceDefinition.getParamTypes() == null) {
serviceDefinition.setParamTypes(paramTypes);
} |
paramTypes also need just because dubbo 2.6.x can not know the type |
@hbwhypw 如果必须用dubbo本身提供的泛化处理,其实这个是没办法处理的,但是如果要传递 xxx.xxx.bean, 这样其实是不友好的,除非我们不使用她的dubbo泛化,直接跳过这部分,到目标机器上 举个例子
|
可以做网关录入啊 不需要手动写这个controller |
@qixiaobo 一般dubbo转http主要是网关用的,也不是录入固定参数吧,我的实现就是类似与 |
录入固定参数的意思把service这些名称录入进去 可以屏蔽这些 只需要关注参数和返回值 |
可以试试,grpc-dubbo-proxy 直接封装为grpc服务,调用路径可以做到 |
dubbo-proxy should consider about how to be a gateway~
If only json is accepted , we should pass through the json string from user.
It's not user-friendly.
The text was updated successfully, but these errors were encountered: