http.rb 467 B

1234567891011121314151617
  1. module Docs
  2. class Http < UrlScraper
  3. self.name = 'HTTP'
  4. self.type = 'rfc'
  5. self.base_url = 'https://tools.ietf.org/html/'
  6. self.initial_paths = %w(rfc2616 rfc4918 rfc7230 rfc7231
  7. rfc7232 rfc7233 rfc7234 rfc7235)
  8. html_filters.push 'http/clean_html', 'http/entries'
  9. options[:container] = '.content'
  10. options[:skip_links] = true
  11. options[:attribution] = <<-HTML
  12. &copy; document authors. All rights reserved.
  13. HTML
  14. end
  15. end