public function parse(HttpResponse $response, $options)
 {
     $result = new UploadPartResult();
     $result->setETag(OSSUtils::trimQuotes($response->getHeader(OSSHeaders::ETAG)));
     $result->setPartNumber($options[OSSOptions::PART_NUMBER]);
     return $result;
 }
 public function handle(HttpResponse $response)
 {
     if ($response->getStatusCode() == 404) {
         $response->close();
         throw OSSExceptionFactory::factory()->create(OSSErrorCode::NO_SUCH_KEY, ResourceManager::getInstance()->getString('NoSuchKey'), $response->getHeader(OSSHeaders::OSS_HEADER_REQUEST_ID));
     }
 }
 public function parse(HttpResponse $response, $options)
 {
     $putObjectResult = new PutObjectResult();
     $putObjectResult->setETag(OSSUtils::trimQuotes($response->getHeader(OSSHeaders::ETAG)));
     return $putObjectResult;
 }