Add split_info field in object.HeadResponse body

Head operation returns SplitInfo structure if request has
raw flag and ID of virtual object.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-07 15:02:20 +03:00 committed by Leonard Lyubich
parent a5a39257fc
commit 7995020a9d

View file

@ -270,13 +270,17 @@ message HeaderWithSignature {
message HeadResponse {
// Object HEAD response body
message Body {
// Requested object header or it's part.
// Requested object header, it's part or meta information about split
// object.
oneof head{
// Full object's `Header` with `ObjectID` signature
HeaderWithSignature header = 1;
// Short object header
ShortHeader short_header = 2;
// Meta information of split hierarchy.
SplitInfo split_info = 3;
}
}
// Body of head object response message.