Method: OpenGraphReader::Fetcher#fetch_headers

Defined in:
lib/open_graph_reader/fetcher.rb

#fetch_headersFaraday::Response?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Fetch just the headers

Returns:

  • (Faraday::Response, nil)


60
61
62
63
64
# File 'lib/open_graph_reader/fetcher.rb', line 60

def fetch_headers
  @head_response = @connection.head(@uri)
rescue Faraday::Error
  @fetch_failed = true
end