Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function populateFromResponse(ResponseInterface $response) : self
 {
     parent::populateFromResponse($response);
     $this->objectCount = $response->getHeaderLine('X-Container-Object-Count');
     $this->bytesUsed = $response->getHeaderLine('X-Container-Bytes-Used');
     $this->metadata = $this->parseMetadata($response);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function populateFromResponse(ResponseInterface $response) : self
 {
     parent::populateFromResponse($response);
     $this->hash = $response->getHeaderLine('ETag');
     $this->contentLength = $response->getHeaderLine('Content-Length');
     $this->lastModified = $response->getHeaderLine('Last-Modified');
     $this->contentType = $response->getHeaderLine('Content-Type');
     $this->metadata = $this->parseMetadata($response);
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 public function populateFromResponse(ResponseInterface $response)
 {
     parent::populateFromResponse($response);
     $this->id = $response->getHeaderLine('X-Subject-Token');
     return $this;
 }
Ejemplo n.º 4
0
 public function populateFromResponse(ResponseInterface $response) : self
 {
     parent::populateFromResponse($response);
     $this->metadata = $this->parseMetadata($response);
     return $this;
 }