更新时间:2021-11-23 21:39:24
否,您不应该.您应该让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.