[#141] Add well-known attribute for content type

Neo3 Oracles need a way to check object's MIME content type, as
described in neo-project/neo-modules#555.

The proposal was to add Content-Type as a well-known attribute.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2021-03-12 22:25:00 +03:00 committed by Stanislav Bogatyrev
parent 69f09c8030
commit e33f784e05
2 changed files with 4 additions and 0 deletions

View file

@ -124,6 +124,8 @@ message Header {
// File name to be associated with the object on saving // File name to be associated with the object on saving
// * Timestamp \ // * Timestamp \
// User-defined local time of object creation in Unix Timestamp format // User-defined local time of object creation in Unix Timestamp format
// * Content-Type \
// MIME Content Type of object's payload
// //
// For detailed description of each well-known attribute please see the // For detailed description of each well-known attribute please see the
// corresponding section in NeoFS Technical specification. // corresponding section in NeoFS Technical specification.

View file

@ -699,6 +699,8 @@ And some well-known attributes used by applications only:
File name to be associated with the object on saving File name to be associated with the object on saving
* Timestamp \ * Timestamp \
User-defined local time of object creation in Unix Timestamp format User-defined local time of object creation in Unix Timestamp format
* Content-Type \
MIME Content Type of object's payload
For detailed description of each well-known attribute please see the For detailed description of each well-known attribute please see the
corresponding section in NeoFS Technical specification. corresponding section in NeoFS Technical specification.