File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
doc/services/object-store/v1
src/ObjectStore/v1/Models Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ Download an object
32
32
As you will notice, a Stream _ object is returned by this call. For more information about dealing with streams, please
33
33
consult `Guzzle's docs `_.
34
34
35
+ By default, the whole body of the object is fetched before the function returns, set the ``'guzzle' `` key of parameter
36
+ ``$data `` to ``['stream' => true] `` to get the stream before the end of download.
37
+
35
38
.. _Stream : https://github.com/guzzle/streams/blob/master/src/Stream.php
36
39
.. _Guzzle's docs : https://guzzle.readthedocs.org/en/5.3/streams.html
37
40
Original file line number Diff line number Diff line change @@ -133,8 +133,9 @@ public function retrieve()
133
133
/**
134
134
* This call will perform a `GET` HTTP request for the given object and return back its content in the form of a
135
135
* Guzzle Stream object. Downloading an object will transfer all of the content for an object, and is therefore
136
- * distinct from fetching its metadata (a `HEAD` request). The body of an object is not fetched by default to
137
- * improve performance when handling large objects.
136
+ * distinct from fetching its metadata (a `HEAD` request). The whole body of the object is fetched before the
137
+ * function returns, set the `'guzzle'` key of {@param $data} to `['stream' => true]` to get the stream before the
138
+ * end of download.
138
139
*
139
140
* @param array $data {@see \OpenStack\ObjectStore\v1\Api::getObject}
140
141
*/
You can’t perform that action at this time.
0 commit comments