更新时间:2021-11-23 21:38:30
不,你不应该.您应该让 HttpClient 根据消息实体的属性自动生成 Content-Type
以及其他内容元数据标头.
No, you should not. You should let HttpClient generate Content-Type
as well as other content metadata headers automatically based on properties of the message entity.