D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Net
/
HTTP
/
Filename :
head-i.ri
back
Copy
U:RDoc::AnyMethod[iI" head:ETI"Net::HTTP#head;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I")Sends a HEAD request to the server; ;TI"<returns an instance of a subclass of Net::HTTPResponse.;To:RDoc::Markup::BlankLine o; ; [I"8The request is based on the Net::HTTP::Head object ;TI"Fcreated from string +path+ and initial headers hash +initheader+:;T@o:RDoc::Markup::Verbatim; [I"Jres = http.head('/todos/1') # => #<Net::HTTPOK 200 OK readbody=true> ;TI"*res.body # => nil ;TI"res.to_hash.take(3) ;TI" # => ;TI"3[["date", ["Wed, 15 Feb 2023 15:25:42 GMT"]], ;TI"= ["content-type", ["application/json; charset=utf-8"]], ;TI" ["connection", ["close"]]];T:@format0: @fileI"lib/net/http.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(path, initheader = nil);T@FI" HTTP;TcRDoc::NormalClass00