Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased]

### Added
- Payload chunk field to `object.PutRequest.Init` message (#333)

### Changed

Expand Down
5 changes: 4 additions & 1 deletion object/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ message GetResponse {
// GET Object Response body
message Body {
// Initial part of the `Object` structure stream. Technically it's a
// set of all `Object` structure's fields except `payload`.
// set of all `Object` structure's fields except `payload` is partial.
message Init {
// Object's unique identifier.
neo.fs.v2.refs.ObjectID object_id = 1;
Expand All @@ -337,6 +337,9 @@ message GetResponse {

// Object metadata headers
Header header = 3;

// Payload prefix. MUST NOT be set if request API version is < `v2.26`.
bytes chunk = 4;
}
// Single message in the response stream.
oneof object_part {
Expand Down
3 changes: 2 additions & 1 deletion proto-docs/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -641,14 +641,15 @@ GET Object Response body

### Message GetResponse.Body.Init
Initial part of the `Object` structure stream. Technically it's a
set of all `Object` structure's fields except `payload`.
set of all `Object` structure's fields except `payload` is partial.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| object_id | [neo.fs.v2.refs.ObjectID](#neo.fs.v2.refs.ObjectID) | | Object's unique identifier. |
| signature | [neo.fs.v2.refs.Signature](#neo.fs.v2.refs.Signature) | | Signed `ObjectID` |
| header | [Header](#neo.fs.v2.object.Header) | | Object metadata headers |
| chunk | [bytes](#bytes) | | Payload prefix. MUST NOT be set if request API version is < `v2.26`. |


<a name="neo.fs.v2.object.HeadRequest"></a>
Expand Down
Loading