D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Net
/
HTTP
/
Head
/
Filename :
cdesc-Head.ri
back
Copy
U:RDoc::NormalClass[iI" Head:ETI"Net::HTTP::Head;TI"Net::HTTPRequest;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"\Class for representing ;TI"l{HTTP method HEAD}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#HEAD_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"Areq = Net::HTTP::Head.new(uri) # => #<Net::HTTP::Head HEAD> ;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: optional.;To;;0;[o; ;[I"Response body: no.;To;;0;[o; ;[I"Y{Safe}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Safe_methods]: yes.;To;;0;[o; ;[I"e{Idempotent}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Idempotent_methods]: yes.;To;;0;[o; ;[I"c{Cacheable}[https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Cacheable_methods]: yes.;T@o; ;[I" Related:;T@o; ;;;[o;;0;[o; ;[I"CNet::HTTP#head: sends +HEAD+ request, returns response object.;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::Head::METHOD;T:public0o;;[ ;@G;0@G@cRDoc::NormalClass0U;[i I"REQUEST_HAS_BODY;TI"&Net::HTTP::Head::REQUEST_HAS_BODY;T;0o;;[ ;@G;0@G@@P0U;[i I"RESPONSE_HAS_BODY;TI"'Net::HTTP::Head::RESPONSE_HAS_BODY;T;0o;;[ ;@G;0@G@@P0[ [[I" class;T[[;[ [:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@G@GcRDoc::TopLevel