D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Net
/
HTTP
/
Filename :
send_request-i.ri
back
Copy
U:RDoc::AnyMethod[iI"send_request:ETI"Net::HTTP#send_request;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"+Sends an \HTTP request to the server; ;TI"<returns an instance of a subclass of Net::HTTPResponse.;To:RDoc::Markup::BlankLine o; ; [ I"9The request is based on the Net::HTTPRequest object ;TI"Screated from string +path+, string +data+, and initial headers hash +header+. ;TI"'That object is an instance of the ;TI"S{subclass of Net::HTTPRequest}[rdoc-ref:Net::HTTPRequest@Request+Subclasses], ;TI"<that corresponds to the given uppercase string +name+, ;TI"which must be ;TI"Ran {HTTP request method}[https://en.wikipedia.org/wiki/HTTP#Request_methods] ;TI"Wor a {WebDAV request method}[https://en.wikipedia.org/wiki/WebDAV#Implementation].;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [ I"$http = Net::HTTP.new(hostname) ;TI"*http.send_request('GET', '/todos/1') ;TI".# => #<Net::HTTPOK 200 OK readbody=true> ;TI"2http.send_request('POST', '/todos', 'xyzzy') ;TI"7# => #<Net::HTTPCreated 201 Created readbody=true>;T:@format0: @fileI"lib/net/http.rb;T:0@omit_headings_from_table_of_contents_below000[ I"+(name, path, data = nil, header = nil);T@$FI" HTTP;TcRDoc::NormalClass00