original_string: protected function _headersToString($headers, $eol = "\r\n")
      {
          $out = '';
          foreach ($headers as $key => $value) {
              if ($value === false || $value === null || $value === '') {
                  continue;
              }
              $out .= $key . ': ' . $value . $eol;
          }
          if (!empty($out)) {
              $out = substr($out, 0, -1 * strlen($eol));
          }
  
          return $out;
      }
code: protected function _headersToString($headers, $eol = "\r\n")
      {
          $out = '';
          foreach ($headers as $key => $value) {
              if ($value === false || $value === null || $value === '') {
                  continue;
              }
              $out .= $key . ': ' . $value . $eol;
          }
          if (!empty($out)) {
              $out = substr($out, 0, -1 * strlen($eol));
          }
  
          return $out;
      }
code_tokens: protected function _headersToString ( $ headers , $ eol = "\r\n" ) { $ out = '' ; foreach ( $ headers as $ key => $ value ) { if ( $ value === false || $ value === null || $ value === '' ) { continue ; } $ out .= $ key . ': ' . $ value . $ eol ; } if ( ! empty ( $ out ) ) { $ out = substr ( $ out , 0 , - 1 * strlen ( $ eol ) ) ; } return $ out ; }
docstring: Help to convert headers in string
  
  @param array $headers Headers in format key => value
  @param string $eol End of line string.
  @return string
docstring_tokens: Help to convert headers in string