(m *concreteManifest)
| 263 | } |
| 264 | |
| 265 | func configureBasicDownloadAdapter(m *concreteManifest) { |
| 266 | m.RegisterNewAdapterFunc(BasicAdapterName, Download, func(name string, dir Direction) Adapter { |
| 267 | switch dir { |
| 268 | case Download: |
| 269 | bd := &basicDownloadAdapter{newAdapterBase(m.fs, name, dir, nil)} |
| 270 | // self implements impl |
| 271 | bd.transferImpl = bd |
| 272 | return bd |
| 273 | case Upload: |
| 274 | panic(tr.Tr.Get("Should never ask this function to upload")) |
| 275 | } |
| 276 | return nil |
| 277 | }) |
| 278 | } |
| 279 | |
| 280 | func (a *basicDownloadAdapter) makeRequest(t *Transfer, req *http.Request) (*http.Response, error) { |
| 281 | res, err := a.doHTTP(t, req) |
no test coverage detected