From 5bd19fe0d2f5f38e7006f27b98f966f9fe7015f5 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 20 Jan 2020 18:26:29 +0300 Subject: [PATCH] Add Raw flag to Get and Head request bodies Raw flag provides the ability to switch the expected representation of the object between the physically stored and the system-wide. The response to the request may vary when the flag is set for some classes of objects (e.g. linking). --- docs/object.md | 2 ++ object/service.pb.go | Bin 120751 -> 122373 bytes object/service.proto | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/docs/object.md b/docs/object.md index 7e86325..e749b98 100644 --- a/docs/object.md +++ b/docs/object.md @@ -221,6 +221,7 @@ in distributed system. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | Address | [refs.Address](#refs.Address) | | Address of object (container id + object id) | +| Raw | [bool](#bool) | | Raw is the request flag of a physically stored representation of an object | | Meta | [service.RequestMetaHeader](#service.RequestMetaHeader) | | RequestMetaHeader contains information about request meta headers (should be embedded into message) | | Verify | [service.RequestVerificationHeader](#service.RequestVerificationHeader) | | RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message) | @@ -247,6 +248,7 @@ in distributed system. | ----- | ---- | ----- | ----------- | | Address | [refs.Address](#refs.Address) | | Address of object (container id + object id) | | FullHeaders | [bool](#bool) | | FullHeaders can be set true for extended headers in the object | +| Raw | [bool](#bool) | | Raw is the request flag of a physically stored representation of an object | | Meta | [service.RequestMetaHeader](#service.RequestMetaHeader) | | RequestMetaHeader contains information about request meta headers (should be embedded into message) | | Verify | [service.RequestVerificationHeader](#service.RequestVerificationHeader) | | RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message) | diff --git a/object/service.pb.go b/object/service.pb.go index 4cad2f7bbc2c66113fc0081b3d42a0700ebea040..9019cae50a7c4ff50942fec25bb394582e9ceaa4 100644 GIT binary patch delta 5557 zcmb`L&8s9=8Hee~e55-JW`vAHWT;#>8Mu+^s;=%XaX=6e6hC5ck)2i5RnCNQdNQ{s z=_pd7xDkd3y|}t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