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

sdk是否有提供修改http请求信息的切口 #154

Open
yejialiango opened this issue May 17, 2023 · 2 comments
Open

sdk是否有提供修改http请求信息的切口 #154

yejialiango opened this issue May 17, 2023 · 2 comments

Comments

@yejialiango
Copy link

我查看了下代码,发现client固定用的是ApiRequest构造请求,请教下,这里是否有其他地方可以拓展,以方便修改请求头,请求host,请求scheme信息的地方?

@zqfan
Copy link
Member

zqfan commented May 29, 2023

好的,我们考虑一下。可能内部实现细节有差别,对最终会允许指定这些信息。如果你有比较具体的想通过何种方式指定也可以一并给出,以免用法和你需要的差距过大

@yejialiango
Copy link
Author

我这边想的是如果可以在:httpProfile = HttpProfile() , httpProfile里面支持设置 请求头,请求host,请求scheme就能满足要求了,因为我这边有个代理并不是透明代理,需要设置这些信息才能将请求转发出去

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