During upload if X-Explode-Archive is set, gate tries to read archive and create an object for each file.
Each object acquires a FilePath attribute which is calculated relative to the archive root.
Archive could have compression via Gzip if "Content-Encoding: gzip" header is specified
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
Split DownloadZip handler on methods. Add handler DownloadTar for downloading tar.gz archives. Make methods more universal for using in both implementations
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
The Access Denied status may be received
from APE due to exceeding the quota. In
this situation, you need to return the
appropriate status code.
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
Prioritize getting s3 object with the key, which equals to valid FrostFS OID, rather than getting non-existent object with OID via native protocol for GET and HEAD requests
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
HTTP Gateway expects io.Reader to work with
payload, however `WithPayload` flag reads whole
payload into header object.
Signed-off-by: Alex Vanin <a.vanin@yadro.com>