📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 06:32:00
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
Net
/
HTTP
📍 /opt/alt/ruby33/share/ri/system/Net/HTTP
🔄 Refresh
✏️
Editing: request_post-i.ri
Read Only
U:RDoc::AnyMethod[iI"request_post:ETI"Net::HTTP#request_post;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I")Sends a POST request to the server; ;TI"8forms the response into a Net::HTTPResponse object.;To:RDoc::Markup::BlankLine o; ; [I"8The request is based on the Net::HTTP::Post object ;TI"Vcreated from string +path+, string +data+, and initial headers hash +initheader+.;T@o; ; [I"6With no block given, returns the response object:;T@o:RDoc::Markup::Verbatim; [I"$http = Net::HTTP.new(hostname) ;TI""http.post('/todos', 'xyzzy') ;TI"8# => #<Net::HTTPCreated 201 Created readbody=true> ;T:@format0o; ; [I"@With a block given, calls the block with the response body ;TI"%and returns the response object:;T@o;; [I"+http.post('/todos', 'xyzzy') do |res| ;TI" p res ;TI"<end # => #<Net::HTTPCreated 201 Created readbody=true> ;T; 0o; ; [I"Output:;T@o;; [I"."{\n \"xyzzy\": \"\",\n \"id\": 201\n}";T; 0: @fileI"lib/net/http.rb;T:0@omit_headings_from_table_of_contents_below00I" response;T[[I" post2;To;; [ ;@+;0I"#(path, data, initheader = nil);T@+FI" HTTP;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel