forked from TrueCloudLab/frostfs-sdk-go
[#121] client: Make PrmObjectGet/Head/GetRange fields public
* Remove common PrmObjectRead structure * Introduce buildRequest for PrmObjectGet/Head/GetRange * Refactor the usage of these params in pool Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
46a214d065
commit
84e7e69f98
3 changed files with 272 additions and 198 deletions
|
@ -47,6 +47,8 @@ func writeXHeadersToMeta(xHeaders []string, h *v2session.RequestMetaHeader) {
|
|||
return
|
||||
}
|
||||
|
||||
// TODO (aarifullin): remove the panic when all client parameters will check XHeaders
|
||||
// within buildRequest invocation.
|
||||
if len(xHeaders)%2 != 0 {
|
||||
panic("slice of X-Headers with odd length")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue