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

关于传参的一个问题 #29

Open
devh0407 opened this issue Oct 12, 2018 · 1 comment
Open

关于传参的一个问题 #29

devh0407 opened this issue Oct 12, 2018 · 1 comment

Comments

@devh0407
Copy link

我用这个调用微信接口。有些接口是推xml数据,不需要key,请问有没有设置的方法
因为我看现在好像只能是推key-value的map

@Arronlong
Copy link
Owner

Header[] headers = HttpHeader.custom().contentType("application/xml").build();

方式一:调用config.json(xml).headers(headers),然后再调用HttpClientUtil进行调用试试。
方式二:调用config.map(Utils.ENTITY_STRING, xml).headers(headers),然后再调用HttpClientUtil进行调用试试。

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

No branches or pull requests

2 participants