Http定义了与服务器交互的不同方法,最基本的方法有4种,分别是GET,POST,PUT,DELETE。URL全称是资源描述符,我们可以这样认为:一个URL地址,它用于描述一个网络上的资源,而HTTP中的GET,POST,PUT,DELETE就对应着对这个资源的查,改,增,删4个操作。到这里,大家应该有个大概的了解了,GET一般用于获取/查询资源信息,而POST一般用于更新资源信息。
1...
分类:
其他好文 时间:
2014-10-09 15:12:14
阅读次数:
114
function Map() { var struct = function(key, value) { this.key = key; this.value = value; } var put = function(key, value){ for (var ...
分类:
Web程序 时间:
2014-10-09 01:13:07
阅读次数:
347
http协议头各个域解析:
请求头的方法有GET, POST , PUT ,DELETE,等。GET用来请求数据,POST还提交数据。
状态码: 1xx 表示请求被接受,正在处理中。
200 ok 表示请求被接受,处理。
...
分类:
其他好文 时间:
2014-10-08 11:58:25
阅读次数:
223
REST Flowcharts
这章节将通过一些列不同的流程图来介绍REST处理状态机。
一个请求主要有四条路线,一个是方法OPTIONS, 一个是方法GET和HEAD;一个是PUT,POST和PATCH,最后一个是DELETE。
所有的路径都是从“Start”开始,如果资源存在,除了OPTIONS路径,其他全部路径都经过“Content negotiation”并且可选“Cond...
分类:
其他好文 时间:
2014-10-07 19:14:14
阅读次数:
422
Http 定义了与服务器交互的不同方法。最基本的方法有4种,分别是Get POST PUT DELETE ,URL 全称资源描述符,我们可以这样认为一个URL地址,一个URL地址,它用于描述一个网络上的资源,而HTTP 中的Get POST PUT DELETE 就 对应着
1.根据HTTP规范,GET用于信息获取,而且应该是安全的和幂等的。
(1).所谓安全的...
分类:
其他好文 时间:
2014-10-07 13:36:53
阅读次数:
135
/*put all vaild new array from the 0 to new length*/public class Solution { public int removeDuplicates(int[] A) { if(A.length < 2) ...
分类:
其他好文 时间:
2014-10-07 06:55:53
阅读次数:
120
Map map = new HashMap(); map.put("key1", "value1"); map.put("key2", "value2"); map.put("key3", "value3"); //第一种:普遍使用,二次取值 System.out.println(...
分类:
其他好文 时间:
2014-10-06 03:20:09
阅读次数:
208
Code Path:
https://github.com/bluesilence/Lisp/blob/master/clojure/projects/room-escape/src/room_escape/core.clj
E2E Process
Now it's time to put the stuff altogether.
The body of the core c...
分类:
Web程序 时间:
2014-10-05 18:36:28
阅读次数:
191
You’re excited; your client is excited. All is well. You’ve just launched the client’slatest website, and it’s fantastic. You’ve put in hours of sweat...
分类:
Web程序 时间:
2014-10-05 14:33:28
阅读次数:
290
在Xtext的官网中是这样说的
“Building your own domain-specific languages has never been so easy. Just put your grammar in place and you not only get the working parser and linker but also first class Eclipse sup...
分类:
其他好文 时间:
2014-10-01 10:17:01
阅读次数:
693