1
0

http.rb 422 B

12345678910111213141516
  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 rfc7230 rfc7231
  7. rfc7232 rfc7233 rfc7234 rfc7235)
  8. html_filters.push 'http/clean_html', 'http/entries'
  9. options[:skip_links] = true
  10. options[:attribution] = <<-HTML
  11. &copy; document authors. All rights reserved.
  12. HTML
  13. end
  14. end