0x00 HTTP Method Definitions
HTTP请求方法在1.1中定义如下,具体可以查看协议,go
0x01 OPTIONS
The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI
OPTIONS方法用于获取指定URI请求或响应通信链上的有关通信选项信息。
0x02 GET
The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI
GET方法用于检索或获取服务器上的指定的资源。
0x03 HEAD
The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.
HEAD方法和GET方法的区别在于,请求的响应中不保护消息体,只返回请求响应头。
0x04 POST
The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource ide