remove unused transport.go file
This commit was moved from ipfs/go-ipfs-http-client@320130421f4727d72d68a3c6a5c0e633e1dabc38
Alex committed
May 1, 2019 at 19:14 UTC
8b9e189169b51c46956a18e08f9dc7bc668401b4
1 file changed
-21
client/httpapi/transport.go
deleted
-21
@@ -1,21 +0,0 @@
1
-package httpapi
2
-
3
-import "net/http"
4
-
5
-type transport struct {
6
- header, value string
7
- httptr http.RoundTripper
8
-}
9
-
10
-func newAuthenticatedTransport(tr http.RoundTripper, header, value string) *transport {
11
- return &transport{
12
- header: header,
13
- value: value,
14
- httptr: tr,
15
- }
16
-}
17
-
18
-func (t *transport) RoundTrip(req *http.Request) (*http.Response, error) {
19
- req.Header.Set(t.header, t.value)
20
- return t.httptr.RoundTrip(req)
21
-}