码迷,mamicode.com
首页 > Windows程序 > 详细

Designing Evolvable Web API with ASP.NET 随便读,随便记 “The Internet,the World Wide Web,and HTTP”

时间:2014-06-28 13:50:39      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   color   使用   

1982年,诞生了 Internet;

1989年,诞生了World Wide Web 。

“World Wide Web”的构造为主要由 三部分构成:

  • resources 资源
  • URIs 统一资源标识符
  • representations  呈现

bubuko.com,布布扣

 

其中,资源并不特指数据库之类的。任何东西可以是资源。

 

URIs 分为两类: URLs 和URNs 。

URL 具有标识,并定位资源的功能。

URN 则只是起标识作用。

通常讲,URI 默认指的是 URL。

Google 建议,不要对实施了缓存的静态资源使用查询字符串。

 

Cool URIs    静态URI

意即,简单易记,并且不会改变的URI。

 

Representation ,呈现。

呈现本身可以多样化,是Resource的变体形式。

 

Media Type  媒体类型

如:text/css

“/”之前,是大类,之后是子类

又如:image/jpg

Designing Evolvable Web API with ASP.NET 随便读,随便记 “The Internet,the World Wide Web,and HTTP”,布布扣,bubuko.com

Designing Evolvable Web API with ASP.NET 随便读,随便记 “The Internet,the World Wide Web,and HTTP”

标签:des   style   blog   http   color   使用   

原文地址:http://www.cnblogs.com/dynamicman/p/3798459.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!