57         if (is_numeric($httpStatusCode)) {
 
   58             $this->httpResponseCode = (int)$httpStatusCode;
 
  107         preg_match(
'|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
 
  108         $this->httpResponseCode = (int)$match[1];
 
  119         $rawHeaders = str_replace(
"\r\n", 
"\n", $rawHeaders);
 
  123         $headerCollection = explode(
"\n\n", trim($rawHeaders));
 
  125         $rawHeader = array_pop($headerCollection);
 
  127         $headerComponents = explode(
"\n", $rawHeader);
 
  128         foreach ($headerComponents 
as $line) {
 
  129             if (strpos($line, 
': ') === 
false) {
 
  132                 list($key, $value) = explode(
': ', $line, 2);
 
  133                 $this->headers[$key] = $value;