http 的 method

https://www.cnblogs.com/machao/p/5788425.html

TRACE : It simply returns what was sent along the network path when a request is made.

OPTIONS : It allows a client to request information about the request methods supported by a service using a * wildcard in the URI.Finally, the response header will lists the supported methods.

CONNECT : It is used to establish a network connection to a resource and once connected the response sends a 200 status code and a “Connection Established” message.

OPTIONS获取服务器支持的HTTP请求方法;

HEAD跟get很像,但是不返回响应体信息,用于检查对象是否存在,并获取包含在响应消息头中的信息。

GET向特定的资源发出请求,得到资源。

POST向指定资源提交数据进行处理的请求,用于添加新的内容。

PUT向指定资源位置上传其最新的内容,用于修改某个内容。

DELETE请求服务器删除请求的URI所标识的资源,用于删除。

TRACE回馈服务器收到的请求,用于远程诊断服务器。

CONNECT用于代理进行传输,如使用ssl

Patch: 修改某个已有的资源。

转载于:https://www.jianshu.com/p/711eb70ce0e2

猜你喜欢

转载自blog.csdn.net/weixin_34367257/article/details/91060354