original_string: public function send()
      {
          // Send headers
          if (headers_sent() === false) {
              if (strpos(PHP_SAPI, 'cgi') === 0) {
                  header(sprintf('Status: %s', $this->getReasonPhrase()));
              } else {
                  header(sprintf('%s %s', $this->getProtocolVersion(), $this->getReasonPhrase()));
              }
  
              foreach ($this->headers as $name => $value) {
                  foreach ($value as $hVal) {
                      header("$name: $hVal", false);
                  }
              }
          }
  
          // Send body
          $this->body->seek(0);
          while ($this->body->feof() === false) {
              echo $this->body->read(1024);
          }
  
          return $this;
      }
code: public function send()
      {
          // Send headers
          if (headers_sent() === false) {
              if (strpos(PHP_SAPI, 'cgi') === 0) {
                  header(sprintf('Status: %s', $this->getReasonPhrase()));
              } else {
                  header(sprintf('%s %s', $this->getProtocolVersion(), $this->getReasonPhrase()));
              }
  
              foreach ($this->headers as $name => $value) {
                  foreach ($value as $hVal) {
                      header("$name: $hVal", false);
                  }
              }
          }
  
          // Send body
          $this->body->seek(0);
          while ($this->body->feof() === false) {
              echo $this->body->read(1024);
          }
  
          return $this;
      }
code_tokens: public function send ( ) { // Send headers if ( headers_sent ( ) === false ) { if ( strpos ( PHP_SAPI , 'cgi' ) === 0 ) { header ( sprintf ( 'Status: %s' , $ this -> getReasonPhrase ( ) ) ) ; } else { header ( sprintf ( '%s %s' , $ this -> getProtocolVersion ( ) , $ this -> getReasonPhrase ( ) ) ) ; } foreach ( $ this -> headers as $ name => $ value ) { foreach ( $ value as $ hVal ) { header ( "$name: $hVal" , false ) ; } } } // Send body $ this -> body -> seek ( 0 ) ; while ( $ this -> body -> feof ( ) === false ) { echo $ this -> body -> read ( 1024 ) ; } return $ this ; }
docstring: Send HTTP response headers and body
  
  @return \Slim\Interfaces\Http\Response Self
  @api
docstring_tokens: Send HTTP response headers and body