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

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.

主站蜘蛛池模板: 图木舒克市| 陕西省| 澎湖县| 焉耆| 林周县| 新竹市| 贵州省| 柳河县| 赫章县| 新泰市| 改则县| 新巴尔虎右旗| 宁海县| 古浪县| 报价| 洛阳市| 玉溪市| 涞水县| 宁海县| 巢湖市| 永德县| 溧水县| 山东省| 合山市| 南召县| 平原县| 扶沟县| 冷水江市| 黔西县| 大港区| 教育| 阿瓦提县| 和田县| 丹江口市| 东源县| 绩溪县| 馆陶县| 武山县| 滨海县| 九龙城区| 娄底市|