📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 09:53:29
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
Net
/
HTTP
/
Put
📍 /opt/alt/ruby33/share/ri/system/Net/HTTP/Put
🔄 Refresh
✏️
Editing: cdesc-Put.ri
Read Only
U:RDoc::NormalClass[iI"Put:ETI"Net::HTTP::Put;TI"Net::HTTPRequest;To:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"\Class for representing ;TI"j{HTTP method PUT}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#PUT_method]:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[I"require 'net/http' ;TI"%uri = URI('http://example.com') ;TI"0hostname = uri.hostname # => "example.com" ;TI"uri.path = '/posts' ;TI">req = Net::HTTP::Put.new(uri) # => #<Net::HTTP::Put PUT> ;TI"=req.body = '{"title": "foo","body": "bar","userId": 1}' ;TI"+req.content_type = 'application/json' ;TI"/res = Net::HTTP.start(hostname) do |http| ;TI" http.request(req) ;TI" end ;T:@format0o; ;[I"FSee {Request Headers}[rdoc-ref:Net::HTTPRequest@Request+Headers].;T@o; ;[I"Properties:;T@o:RDoc::Markup::List: @type:BULLET:@items[ o:RDoc::Markup::ListItem:@label0;[o; ;[I"Request body: yes.;To;;0;[o; ;[I"Response body: yes.;To;;0;[o; ;[I"X{Safe}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Safe_methods]: no.;To;;0;[o; ;[I"e{Idempotent}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Idempotent_methods]: yes.;To;;0;[o; ;[I"b{Cacheable}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Cacheable_methods]: no.;T: @fileI"lib/net/http/requests.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [U:RDoc::Constant[i I"METHOD;TI"Net::HTTP::Put::METHOD;T:public0o;;[ ;@@;0@@@cRDoc::NormalClass0U;[i I"REQUEST_HAS_BODY;TI"%Net::HTTP::Put::REQUEST_HAS_BODY;T;0o;;[ ;@@;0@@@@I0U;[i I"RESPONSE_HAS_BODY;TI"&Net::HTTP::Put::RESPONSE_HAS_BODY;T;0o;;[ ;@@;0@@@@I0[ [[I" class;T[[;[ [:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[I"lib/net/http/requests.rb;T@@cRDoc::TopLevel
💾 Save Changes
❌ Cancel