Skip to content
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

Region一定要设置吗? #226

Open
youngledo opened this issue Nov 15, 2024 · 2 comments
Open

Region一定要设置吗? #226

youngledo opened this issue Nov 15, 2024 · 2 comments

Comments

@youngledo
Copy link

// clientConfig 中包含了设置 region, https(默认 http), 超时, 代理等 set 方法, 使用可参见源码或者常见问题 Java SDK 部分
Region region = new Region("COS_REGION");

示例代码我看了,为什么一定要配置Region?内部不能通过“examplebucket-1250000000.cos.ap-guangzhou.myqcloud.com”解析出地区吗?

@Dzkol
Copy link
Collaborator

Dzkol commented Nov 29, 2024

当前region参数需要业务层传入,不支持从host里解析

@youngledo
Copy link
Author

我看了文档,这个Region不就是不就在“examplebucket-1250000000.cos.ap-guangzhou.myqcloud.com”里面吗?直接代码内部解析下不好吗?其它厂商的都没有这样的多余设置。是否支持PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants