官术网_书友最值得收藏!

Self-descriptive messages

In general, the information provided by the RESTful service contains all the information about the resource that the client should be aware of. There is also a possibility of including more information than the resource itself. This information can be included as a link. In HTTP, it is used as the content-type header and the agreement needs to be bilateral—that is, the requestor needs to state the media type that it's waiting for and the receiver must agree about what the media type refers to.

Some examples of media types are listed in the following table:

 

There is also a possibility of creating custom media types. A complete list can be found at https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types.

主站蜘蛛池模板: 竹溪县| 老河口市| 长汀县| 吉林市| 石首市| 鸡东县| 太康县| 项城市| 平湖市| 贺州市| 皮山县| 德昌县| 邻水| 湖南省| 蚌埠市| 泰州市| 都匀市| 襄城县| 桦南县| 舒兰市| 彭山县| 于都县| 罗城| 梓潼县| 朝阳县| 双峰县| 宝山区| 从江县| 英超| 长泰县| 龙胜| 新津县| 孙吴县| 政和县| 云浮市| 任丘市| 铁岭市| 红安县| 合阳县| 米泉市| 榆林市|