D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Net
/
HTTP
/
Filename :
start-i.ri
back
Copy
U:RDoc::AnyMethod[iI" start:ETI"Net::HTTP#start;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"Starts an \HTTP session.;To:RDoc::Markup::BlankLine o; ; [I"%Without a block, returns +self+:;T@o:RDoc::Markup::Verbatim; [I"$http = Net::HTTP.new(hostname) ;TI"B# => #<Net::HTTP jsonplaceholder.typicode.com:80 open=false> ;TI"http.start ;TI"A# => #<Net::HTTP jsonplaceholder.typicode.com:80 open=true> ;TI"http.started? # => true ;TI"http.finish ;T:@format0o; ; [I"0With a block, calls the block with +self+, ;TI"0finishes the session when the block exits, ;TI"#and returns the block's value:;T@o;; [ I"http.start do |http| ;TI" http ;TI" end ;TI"B# => #<Net::HTTP jsonplaceholder.typicode.com:80 open=false> ;TI"http.started? # => false;T; 0: @fileI"lib/net/http.rb;T:0@omit_headings_from_table_of_contents_below00I" http;T[ I"();T@&FI" HTTP;TcRDoc::NormalClass00