0106 Content Processing

本文详细阐述了UAS如何处理消息中的不同内容类型、语言及编码方式。若遇到不支持的内容类型、编码或语言,UAS需返回415状态码,并在响应中列出其支持的内容类型、编码和语言。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

Assuming the UAS understands any extensions required by the client,

   the UAS examines the body of the message, and the header fields that

   describe it.  If there are any bodies whose type (indicated by the

   Content-Type), language (indicated by the Content-Language) or

   encoding (indicated by the Content-Encoding) are not understood, and

   that body part is not optional (as indicated by the Content-

   Disposition header field), the UAS MUST reject the request with a 415

   (Unsupported Media Type) response.  The response MUST contain an

   Accept header field listing the types of all bodies it understands,

   in the event the request contained bodies of types not supported by

   the UAS.  If the request contained content encodings not understood

   by the UAS, the response MUST contain an Accept-Encoding header field

   listing the encodings understood by the UAS.  If the request

   contained content with languages not understood by the UAS, the

   response MUST contain an Accept-Language header field indicating the

   languages understood by the UAS.  Beyond these checks, body handling

   depends on the method and type.  For further information on the

   processing of content-specific header fields, see Section 7.4 as well

   as Section 20.11 through 20.15.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值