Open into-piece opened 5 years ago
参考:
根本区别是put是幂等,post是非幂等。通常情况下,PUT的URI指向是具体单一资源,而POST可以指向资源集合。
PUT和PATCH都是更新资源,而PATCH用来对已知资源进行局部更新。
包括请求行,请求头,空行,请求体
请求报文有4部分组成:响应行,响应头,空行,响应体
参考:
HTTP有哪些方法?
这些方法的具体作用是什么?
GET和POST有什么区别?
PUT和POST
根本区别是put是幂等,post是非幂等。通常情况下,PUT的URI指向是具体单一资源,而POST可以指向资源集合。
PUT和PATCH
PUT和PATCH都是更新资源,而PATCH用来对已知资源进行局部更新。
http的请求报文是什么样的?
http的响应报文是什么样的?