File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ public function getObject(array $args = []);
132132
133133 /**
134134 * @param array $args
135+ * @return array
135136 */
136137 public function headObject (array $ args = []);
137138
Original file line number Diff line number Diff line change @@ -308,12 +308,29 @@ public function getObject(array $args = [])
308308
309309 /**
310310 * @param array $args
311+ * @return array
311312 */
312313 public function headObject (array $ args = [])
313314 {
314315 $ args += [
315316 'prettyPrint ' => false ,
316317 ];
318+
319+ $ args ['restRetryFunction ' ] = $ this ->restRetryFunction ?? $ this ->getRestRetryFunction (
320+ 'objects ' ,
321+ 'get ' ,
322+ $ args
323+ );
324+
325+ $ args += array_filter ([
326+ 'retryStrategy ' => $ this ->retryStrategy ,
327+ 'restDelayFunction ' => $ this ->restDelayFunction ,
328+ 'restCalcDelayFunction ' => $ this ->restCalcDelayFunction ,
329+ 'restRetryListener ' => $ this ->restRetryListener ,
330+ ]);
331+
332+ $ args = $ this ->addRetryHeaderLogic ($ args );
333+
317334 $ requestOptions = $ this ->pluckArray ([
318335 'restOptions ' ,
319336 'retries ' ,
You can’t perform that action at this time.
0 commit comments