protected function extractFromHeaders($response) {
    $this->setContentType($response->header('Content-Type', $this->contentType()));
    $this->lastModified = strtotime($response->header('Last-Modified', 0));
    $this->etag = $response->header('Etag', $this->etag);
    $this->contentLength = (int) $response->header('Content-Length', 0);

    $this->setDisposition($response->header('Content-Disposition', NULL));
    $this->setEncoding($response->header('Content-Encoding', NULL));

    // Reset the metadata, too:
    $this->setMetadata(Container::extractHeaderAttributes($response->headers()));

    return $this;

  }
protected function extractFromHeaders($response) {
    $this->setContentType($response->header('Content-Type', $this->contentType()));
    $this->lastModified = strtotime($response->header('Last-Modified', 0));
    $this->etag = $response->header('Etag', $this->etag);
    $this->contentLength = (int) $response->header('Content-Length', 0);

    $this->setDisposition($response->header('Content-Disposition', NULL));
    $this->setEncoding($response->header('Content-Encoding', NULL));

    // Reset the metadata, too:
    $this->setMetadata(Container::extractHeaderAttributes($response->headers()));

    return $this;

  }
protected function extractFromHeaders ( $ response ) { $ this -> setContentType ( $ response -> header ( 'Content-Type' , $ this -> contentType ( ) ) ) ; $ this -> lastModified = strtotime ( $ response -> header ( 'Last-Modified' , 0 ) ) ; $ this -> etag = $ response -> header ( 'Etag' , $ this -> etag ) ; $ this -> contentLength = ( int ) $ response -> header ( 'Content-Length' , 0 ) ; $ this -> setDisposition ( $ response -> header ( 'Content-Disposition' , NULL ) ) ; $ this -> setEncoding ( $ response -> header ( 'Content-Encoding' , NULL ) ) ; // Reset the metadata, too: $ this -> setMetadata ( Container :: extractHeaderAttributes ( $ response -> headers ( ) ) ) ; return $ this ; }
Extract information from HTTP headers.

This is used internally to set object properties from headers.

@retval HPCloud::Storage::ObjectStorage::RemoteObject
@return \HPCloud\Storage\ObjectStorage\RemoteObject
$this for the current object so it can be used in chaining methods.
Extract information from HTTP headers .