parameters: (cls, header_items)
docstring: Prepare the sequence of name, value tuples into a form suitable for
          transmitting on the wire for HTTP.
docstring_summary: Prepare the sequence of name, value tuples into a form suitable for
          transmitting on the wire for HTTP.
docstring_tokens: Prepare the sequence of name value tuples into a form suitable for transmitting on the wire for HTTP .
function: def encode_header_items(cls, header_items):
          """
          Prepare the sequence of name, value tuples into a form suitable for
          transmitting on the wire for HTTP.
          """
          for k, v in header_items:
              if not isinstance(v, str) and not isinstance(v, bytes):
                  v = str(v)
  
              yield tuple(map(cls.encode_header_item, (k, v)))
function_tokens: def encode_header_items ( cls , header_items ) : for k , v in header_items : if not isinstance ( v , str ) and not isinstance ( v , bytes ) : v = str ( v ) yield tuple ( map ( cls . encode_header_item , ( k , v ) ) )