class_docstr: Lexer for HTTP sessions.
  
  .. versionadded:: 1.5
code: def content_callback(self, match):
      content_type = getattr(self, "content_type", None)
      content = match.group()
      offset = match.start()
      if content_type:
          from pygments.lexers import get_lexer_for_mimetype
  
          possible_lexer_mimetypes = [content_type]
          if "+" in content_type:
              # application/calendar+xml can be treated as application/xml
              # if there's not a better match.
              general_type = re.sub(
                  r"^(.*)/.*\+(.*)$", r"\1/\2", content_type
              )
              possible_lexer_mimetypes.append(general_type)
  
          for i in possible_lexer_mimetypes:
              try:
                  lexer = get_lexer_for_mimetype(i)
              except ClassNotFound:
                  pass
              else:
                  for idx, token, value in lexer.get_tokens_unprocessed(
                      content
                  ):
                      yield offset + idx, token, value
                  return
      yield offset, Text, content
  
imports: import re
  from pygments.lexers import guess_lexer, get_lexer_by_name
  from pygments.lexer import RegexLexer, bygroups, default, include
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Generic, Literal, Punctuation
  from pygments.util import ClassNotFound
label_desc: Use image node_id 4 for calling the HttpLexer obj's underlying member method code with example usage: obj.content_callback(match) without return types