method
request_head
request_head(path, initheader = nil, &block)
public
Sends a HEAD request to the path and gets a response, as an HTTPResponse object.
Returns the response.
This method never raises Net::* exceptions.
response = http.request_head('/index.html') p response['content-type']