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