HTTP - Method 定义

本文详细介绍了HTTP请求的8种方法:OPTIONS用于获取通信选项,GET用于获取资源,HEAD类似于GET但不返回消息体,POST用于创建资源,PUT用于更新资源,DELETE用于删除资源,TRACE用于诊断请求消息,CONNECT用于建立隧道。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值