Method: HTMLProofer::UrlValidator::External#handle_timeout

Defined in:
lib/html_proofer/url_validator/external.rb

#handle_timeout(href, filenames, response_code) ⇒ Object

[View source]

167
168
169
170
171
172
173
# File 'lib/html_proofer/url_validator/external.rb', line 167

def handle_timeout(href, filenames, response_code)
  msg = "External link #{href} failed: got a time out (response code #{response_code})"
  @cache.add_external(href, filenames, 0, msg, false)
  return if @runner.options[:only_4xx]

  add_failure(filenames, msg, response_code)
end