Title: How to retrieve a part of an object by defining a range? · Issue #346 · php-opencloud/openstack · GitHub
Open Graph Title: How to retrieve a part of an object by defining a range? · Issue #346 · php-opencloud/openstack
X Title: How to retrieve a part of an object by defining a range? · Issue #346 · php-opencloud/openstack
Description: I have implemented the php-opencloud/openstack library, and I use it to retrieve objects (object_store/v1). I use the retrieve function that allows me to retrieve the content of an object, but how to retrieve a part of an object using "r...
Open Graph Description: I have implemented the php-opencloud/openstack library, and I use it to retrieve objects (object_store/v1). I use the retrieve function that allows me to retrieve the content of an object, but how ...
X Description: I have implemented the php-opencloud/openstack library, and I use it to retrieve objects (object_store/v1). I use the retrieve function that allows me to retrieve the content of an object, but how ...
Opengraph URL: https://github.com/php-opencloud/openstack/issues/346
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to retrieve a part of an object by defining a range?","articleBody":"I have implemented the [php-opencloud/openstack](https://github.com/php-opencloud/openstack) library, and I use it to retrieve objects (object_store/v1).\r\n\r\nI use the retrieve function that allows me to retrieve the content of an object,\r\n\r\nbut how to retrieve a part of an object using \"range\" defined in the request header with this library?\r\n\r\nIt seems possible, see the [Api.php](https://github.com/php-opencloud/openstack/blob/master/src/ObjectStore/v1/Api.php) extract :\r\n\r\n```\r\npublic function getObject(): array\r\n {\r\n return [\r\n 'method' =\u003e 'GET',\r\n 'path' =\u003e '{containerName}/{+name}',\r\n 'params' =\u003e [\r\n 'containerName' =\u003e $this-\u003eparams-\u003econtainerName(),\r\n 'name' =\u003e $this-\u003eparams-\u003eobjectName(),\r\n 'range' =\u003e $this-\u003eparams-\u003erange(),\r\n 'ifMatch' =\u003e $this-\u003eparams-\u003eifMatch(),\r\n 'ifNoneMatch' =\u003e $this-\u003eparams-\u003eifNoneMatch(),\r\n 'ifModifiedSince' =\u003e $this-\u003eparams-\u003eifModifiedSince(),\r\n 'ifUnmodifiedSince' =\u003e $this-\u003eparams-\u003eifUnmodifiedSince(),\r\n ],\r\n ];\r\n }\r\n```","author":{"url":"https://github.com/thomasfaure","@type":"Person","name":"thomasfaure"},"datePublished":"2022-04-26T19:08:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/346/openstack/issues/346"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b1977d0b-101b-6360-fbbc-6841a2c218b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B556:14F335:8736CE8:AF26ECF:6975D7A4 |
| html-safe-nonce | ce64772cf68ea9c4b5c385e6a55a1d27f820c8c86ead32e50b86b6a86d92ba0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTU2OjE0RjMzNTo4NzM2Q0U4OkFGMjZFQ0Y6Njk3NUQ3QTQiLCJ2aXNpdG9yX2lkIjoiMjgwOTc0NDgzNDg5NTkyNzIwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a562c6854ed6b87c307bf11e0b540bb057185cd29f9c0711e48eaf4f09b02ad0 |
| hovercard-subject-tag | issue:1216366571 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/php-opencloud/openstack/346/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2a9d71ce81fc56955505afa0e960380b9a85b7553c4753e3b9570b204970ca32/php-opencloud/openstack/issues/346 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2a9d71ce81fc56955505afa0e960380b9a85b7553c4753e3b9570b204970ca32/php-opencloud/openstack/issues/346 |
| og:image:alt | I have implemented the php-opencloud/openstack library, and I use it to retrieve objects (object_store/v1). I use the retrieve function that allows me to retrieve the content of an object, but how ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thomasfaure |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2bce766e7450b03e00b2fc5badd417927ce33a860e78cda3e4ecb9bbd1374cc6 |
| turbo-cache-control | no-preview |
| go-import | github.com/php-opencloud/openstack git https://github.com/php-opencloud/openstack.git |
| octolytics-dimension-user_id | 8049082 |
| octolytics-dimension-user_login | php-opencloud |
| octolytics-dimension-repository_id | 32149778 |
| octolytics-dimension-repository_nwo | php-opencloud/openstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32149778 |
| octolytics-dimension-repository_network_root_nwo | php-opencloud/openstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fcca2b8ef702b5f7f91427a6e920fa44446fe312 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width