1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
10 "git.curoverse.com/arvados.git/sdk/go/keepclient"
13 var viaAlias = "keepproxy"
15 type proxyClient struct {
16 client keepclient.HTTPClient
21 func (pc *proxyClient) Do(req *http.Request) (*http.Response, error) {
22 req.Header.Add("Via", pc.proto+" "+viaAlias)
23 req.Header.Add("X-Request-Id", pc.requestID)
24 return pc.client.Do(req)