original_string: public function sendHeader()
      {
          $file = $line = null;
          if ($this->isHeaderSent($file, $line)) {
              if ($this->wei->has('logger')) {
                  $this->logger->debug(sprintf('Header has been at %s:%s', $file, $line));
              }
              return false;
          }
  
          // Send status
          $this->sendRawHeader(sprintf('HTTP/%s %d %s', $this->version, $this->statusCode, $this->statusText));
  
          // Send headers
          foreach ($this->headers as $name => $values) {
              foreach ($values as $value) {
                  $this->sendRawHeader($name . ': ' . $value);
              }
          }
  
          $this->sendCookie();
  
          return true;
      }
code: public function sendHeader()
      {
          $file = $line = null;
          if ($this->isHeaderSent($file, $line)) {
              if ($this->wei->has('logger')) {
                  $this->logger->debug(sprintf('Header has been at %s:%s', $file, $line));
              }
              return false;
          }
  
          // Send status
          $this->sendRawHeader(sprintf('HTTP/%s %d %s', $this->version, $this->statusCode, $this->statusText));
  
          // Send headers
          foreach ($this->headers as $name => $values) {
              foreach ($values as $value) {
                  $this->sendRawHeader($name . ': ' . $value);
              }
          }
  
          $this->sendCookie();
  
          return true;
      }
code_tokens: public function sendHeader ( ) { $ file = $ line = null ; if ( $ this -> isHeaderSent ( $ file , $ line ) ) { if ( $ this -> wei -> has ( 'logger' ) ) { $ this -> logger -> debug ( sprintf ( 'Header has been at %s:%s' , $ file , $ line ) ) ; } return false ; } // Send status $ this -> sendRawHeader ( sprintf ( 'HTTP/%s %d %s' , $ this -> version , $ this -> statusCode , $ this -> statusText ) ) ; // Send headers foreach ( $ this -> headers as $ name => $ values ) { foreach ( $ values as $ value ) { $ this -> sendRawHeader ( $ name . ': ' . $ value ) ; } } $ this -> sendCookie ( ) ; return true ; }
docstring: Send HTTP headers, including HTTP status, raw headers and cookies
  
  @return bool If the header has been seen, return false, otherwise, return true
docstring_tokens: Send HTTP headers including HTTP status raw headers and cookies