示例#1
0
 /**
  * @param HttpResponse $response
  * @return array|bool
  */
 private static function parseWriteFileResponse(HttpResponse $response)
 {
     if ($response->hasHeader('x-upyun-width')) {
         $headers = $response->getHeaders();
         return ['width' => (int) $headers['x-upyun-width'], 'height' => (int) $headers['x-upyun-height'], 'type' => $headers['x-upyun-file-type'], 'frames' => (int) $headers['x-upyun-frames']];
     }
     return true;
 }