original_string: private function extractHeadersFromResponse() {
      $response = "";
      $code = $this->response->getStatusCode();
      $text = HttpUtil::getResponseTextForCode($code);
      $response .= sprintf(self::STATUS_LINE_FORMAT, $code, $text);
  
      foreach($this->response->getHeaderList() as $header) {
        $response .= sprintf("%s: %s%s",
                             $header->getKey(),
                             $header->getValue(),
                             self::CRLF);
      }
      $response .= self::CRLF;
      return $response;
    }
code: private function extractHeadersFromResponse() {
      $response = "";
      $code = $this->response->getStatusCode();
      $text = HttpUtil::getResponseTextForCode($code);
      $response .= sprintf(self::STATUS_LINE_FORMAT, $code, $text);
  
      foreach($this->response->getHeaderList() as $header) {
        $response .= sprintf("%s: %s%s",
                             $header->getKey(),
                             $header->getValue(),
                             self::CRLF);
      }
      $response .= self::CRLF;
      return $response;
    }
code_tokens: private function extractHeadersFromResponse ( ) { $ response = "" ; $ code = $ this -> response -> getStatusCode ( ) ; $ text = HttpUtil :: getResponseTextForCode ( $ code ) ; $ response .= sprintf ( self :: STATUS_LINE_FORMAT , $ code , $ text ) ; foreach ( $ this -> response -> getHeaderList ( ) as $ header ) { $ response .= sprintf ( "%s: %s%s" , $ header -> getKey ( ) , $ header -> getValue ( ) , self :: CRLF ) ; } $ response .= self :: CRLF ; return $ response ; }
docstring: Create the header body from the URLFetch response.
  
  @returns string The header block of the response.
docstring_tokens: Create the header body from the URLFetch response .