code: def http_keepalive (headers):
      
      keepalive = headers.get("Keep-Alive")
      if keepalive is not None:
          try:
              keepalive = int(keepalive[8:].strip())
          except (ValueError, OverflowError):
              keepalive = DEFAULT_KEEPALIVE
      else:
          keepalive = DEFAULT_KEEPALIVE
      return keepalive
docs: Get HTTP keepalive value, either from the Keep-Alive header or a
      default value.
  
      @param headers: HTTP headers
      @type headers: dict
      @return: keepalive in seconds
      @rtype: int