[#431] services/object: Re-sign original read requests during forwarding

In previous implementation node's Object Get/Head/GetRange V2 service
handlers created a new request for each RPC. Now original requests are
re-signed according to API specification. Logical handler abstracts from
this version-dependent logic through `RequestForwarder` callback.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-04-29 15:18:29 +03:00 committed by Leonard Lyubich
parent e6b30aed36
commit 36088949fc
6 changed files with 304 additions and 2 deletions

View file

@ -41,6 +41,12 @@ type execCtx struct {
head bool
curProcEpoch uint64
// true when the processing of the initial request
// is turned to assembling stage. When false,
// initial request can be forwarded during network
// communication.
assembling bool
}
type execOption func(*execCtx)