original_string: private function __responseHeaderCallback($curl, $data)
  	{
  		if (($strlen = strlen($data)) <= 2) return $strlen;
  		if (substr($data, 0, 4) == 'HTTP')
  			$this->response->code = (int)substr($data, 9, 3);
  		else
  		{
  			$data = trim($data);
  			if (strpos($data, ': ') === false) return $strlen;
  			list($header, $value) = explode(': ', $data, 2);
  			if ($header == 'Last-Modified')
  				$this->response->headers['time'] = strtotime($value);
  			elseif ($header == 'Date')
  				$this->response->headers['date'] = strtotime($value);
  			elseif ($header == 'Content-Length')
  				$this->response->headers['size'] = (int)$value;
  			elseif ($header == 'Content-Type')
  				$this->response->headers['type'] = $value;
  			elseif ($header == 'ETag')
  				$this->response->headers['hash'] = $value{0} == '"' ? substr($value, 1, -1) : $value;
  			elseif (preg_match('/^x-amz-meta-.*$/', $header))
  				$this->response->headers[$header] = $value;
  		}
  		return $strlen;
  	}
code: private function __responseHeaderCallback($curl, $data)
  	{
  		if (($strlen = strlen($data)) <= 2) return $strlen;
  		if (substr($data, 0, 4) == 'HTTP')
  			$this->response->code = (int)substr($data, 9, 3);
  		else
  		{
  			$data = trim($data);
  			if (strpos($data, ': ') === false) return $strlen;
  			list($header, $value) = explode(': ', $data, 2);
  			if ($header == 'Last-Modified')
  				$this->response->headers['time'] = strtotime($value);
  			elseif ($header == 'Date')
  				$this->response->headers['date'] = strtotime($value);
  			elseif ($header == 'Content-Length')
  				$this->response->headers['size'] = (int)$value;
  			elseif ($header == 'Content-Type')
  				$this->response->headers['type'] = $value;
  			elseif ($header == 'ETag')
  				$this->response->headers['hash'] = $value{0} == '"' ? substr($value, 1, -1) : $value;
  			elseif (preg_match('/^x-amz-meta-.*$/', $header))
  				$this->response->headers[$header] = $value;
  		}
  		return $strlen;
  	}
code_tokens: private function __responseHeaderCallback ( $ curl , $ data ) { if ( ( $ strlen = strlen ( $ data ) ) <= 2 ) return $ strlen ; if ( substr ( $ data , 0 , 4 ) == 'HTTP' ) $ this -> response -> code = ( int ) substr ( $ data , 9 , 3 ) ; else { $ data = trim ( $ data ) ; if ( strpos ( $ data , ': ' ) === false ) return $ strlen ; list ( $ header , $ value ) = explode ( ': ' , $ data , 2 ) ; if ( $ header == 'Last-Modified' ) $ this -> response -> headers [ 'time' ] = strtotime ( $ value ) ; elseif ( $ header == 'Date' ) $ this -> response -> headers [ 'date' ] = strtotime ( $ value ) ; elseif ( $ header == 'Content-Length' ) $ this -> response -> headers [ 'size' ] = ( int ) $ value ; elseif ( $ header == 'Content-Type' ) $ this -> response -> headers [ 'type' ] = $ value ; elseif ( $ header == 'ETag' ) $ this -> response -> headers [ 'hash' ] = $ value { 0 } == '"' ? substr ( $ value , 1 , - 1 ) : $ value ; elseif ( preg_match ( '/^x-amz-meta-.*$/' , $ header ) ) $ this -> response -> headers [ $ header ] = $ value ; } return $ strlen ; }
docstring: CURL header callback
  
  @param resource $curl CURL resource
  @param string $data Data
  @return integer
docstring_tokens: CURL header callback