class Rouge::Lexers::HTTP

def self.http_methods

def self.http_methods
  @http_methods ||= %w(GET POST PUT DELETE HEAD OPTIONS TRACE PATCH QUERY)
end

def content_lexer

def content_lexer
  @content_lexer ||= (lexer_option(:content) || guess_content_lexer)
end

def guess_content_lexer

def guess_content_lexer
  return Lexers::PlainText unless @content_type
  Lexer.guess_by_mimetype(@content_type)
rescue Lexer::AmbiguousGuess
  Lexers::PlainText
end