Multipart HTTP Response vs Zip File For API Respon

2019-07-16 06:25发布

If I want to return multiple files in one HTTP response from my API because my clients have very low bandwidth and bad internet connectivity, what is my best option for sending them to the client?

Should I use a Multipart HTTP response or zip up all my files and return those? I realize that Multipart HTTP responses are not recommended for browsers but I am talking about an API where I control the client.

0条回答
登录 后发表回答