/** * {@inheritdoc} */ public function getContentDisposition() { return $this->response->getContentDisposition(); }
/** * @param Response $response * @return Blob */ public static function fromHttpResponse($response) { $disposition = new ContentDisposition($response->getContentDisposition()); return new Blob($disposition->getFilename(), IOUtils::copyToTempFile($response->getBody()->getStream()), $response->getBody()->getContentType()); }