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

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.

主站蜘蛛池模板: 昌图县| 竹山县| 老河口市| 正阳县| 弋阳县| 白玉县| 阳曲县| 南汇区| 抚州市| 莆田市| 大名县| 怀化市| 海盐县| 泾川县| 株洲县| 洪江市| 阳春市| 宜君县| 平乡县| 晋州市| 齐齐哈尔市| 大竹县| 连江县| 高清| 壶关县| 阿巴嘎旗| 建阳市| 樟树市| 舒城县| 广德县| 上虞市| 迁安市| 玛曲县| 大关县| 阳新县| 青冈县| 焉耆| 大石桥市| 涞水县| 桐梓县| 抚州市|