method

request_head

v1_8_6_287 - Show latest stable - Class: Net::HTTP
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']