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

是否支持两个formbody的传输 #19

Open
JKTerrific opened this issue Jun 13, 2018 · 4 comments
Open

是否支持两个formbody的传输 #19

JKTerrific opened this issue Jun 13, 2018 · 4 comments

Comments

@JKTerrific
Copy link

复杂对象会被作为formbody传输。如果某个接口需要传入两个或以上的复杂对象的情况下,formbody是否能正常的传输呢。

@JKTerrific
Copy link
Author

由于我使用的是使用url参数传递的方式。所以不会有这个问题。 #16

@JKTerrific
Copy link
Author

当时这个pr中将参数传递由BodyParameter改为QueryParameter的理由是基于这个issue。当时没有描述清楚,现在想要补充并了解一下这个问题是否有考虑到。

@Sayi
Copy link
Owner

Sayi commented Jun 13, 2018

复杂对象传输方式是formdata。
formdata的数据个数和数据类型很广泛的,比如你可以一次性上传好几个文件。

所以传输几个复杂对象完全没问题的。

@JKTerrific
Copy link
Author

好的 我之前对formdata的理解有一些误会。感谢回复

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