putrequest和request的区别

发布网友 发布时间:2022-04-26 21:36

我来回答

2个回答

热心网友 时间:2023-11-05 21:53

put request意思是提出要求
request
n.要求; 需要; 所请求的事物; 申请书;
vt.(下级对上级的)请求; 请求得到; 索取; 邀请[常接不定式或从句];

例句
1
France had agreed to his request for political asylum.
法国已经同意了他寻求*庇护的请求。
2
Microsoft has not responded to a request for comment.
微软并未就评论此次事件的要求作出回应。
3
A successful PUT implies that the existing resource has been replaced with the resource specified in the PUT request body.
成功的PUT意味着,现有资源已被PUT请求主体中指定的资源替代。
4
The usual REST convention is that a POST request creates a new resource, while a PUT request updates an existing resource.
通常的REST协定是,POST请求创建新资源,PUT请求更新现有资源。
5
To update a property of a work item, do a Put request to the same address you used in the last example:
要更新一个工作项的属性,请对在上一个示例中使用的相同地址发出一个Put请求:

热心网友 时间:2023-11-05 21:54

putrequest不会自动发送header部分,request是自动的

request( method, url[, body[, headers]])

This will send a request to the server using the HTTP request method method and the selector url. If the body argument is present, it should be a string of data to send after the headers are finished. The header Content-Length is automatically set to the correct value. The headers argument should be a mapping of extra HTTP headers to send with the request.

putrequest( request, selector[, skip_host[, skip_accept_encoding]])

This should be the first call after the connection to the server has been made. It sends a line to the server consisting of the request string, the selector string, and the HTTP version (HTTP/1.1). To disable automatic sending of Host: or Accept-Encoding: headers (for example to accept additional content encodings), specify skip_host or skip_accept_encoding with non-False values. Changed in version 2.4: skip_accept_encoding argument added.

热心网友 时间:2023-11-05 21:53

put request意思是提出要求
request
n.要求; 需要; 所请求的事物; 申请书;
vt.(下级对上级的)请求; 请求得到; 索取; 邀请[常接不定式或从句];

例句
1
France had agreed to his request for political asylum.
法国已经同意了他寻求*庇护的请求。
2
Microsoft has not responded to a request for comment.
微软并未就评论此次事件的要求作出回应。
3
A successful PUT implies that the existing resource has been replaced with the resource specified in the PUT request body.
成功的PUT意味着,现有资源已被PUT请求主体中指定的资源替代。
4
The usual REST convention is that a POST request creates a new resource, while a PUT request updates an existing resource.
通常的REST协定是,POST请求创建新资源,PUT请求更新现有资源。
5
To update a property of a work item, do a Put request to the same address you used in the last example:
要更新一个工作项的属性,请对在上一个示例中使用的相同地址发出一个Put请求:

热心网友 时间:2023-11-05 21:54

putrequest不会自动发送header部分,request是自动的

request( method, url[, body[, headers]])

This will send a request to the server using the HTTP request method method and the selector url. If the body argument is present, it should be a string of data to send after the headers are finished. The header Content-Length is automatically set to the correct value. The headers argument should be a mapping of extra HTTP headers to send with the request.

putrequest( request, selector[, skip_host[, skip_accept_encoding]])

This should be the first call after the connection to the server has been made. It sends a line to the server consisting of the request string, the selector string, and the HTTP version (HTTP/1.1). To disable automatic sending of Host: or Accept-Encoding: headers (for example to accept additional content encodings), specify skip_host or skip_accept_encoding with non-False values. Changed in version 2.4: skip_accept_encoding argument added.

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com