od-database-crawler/remote_http.go
2018-10-27 04:10:08 +02:00

33 lines
393 B
Go

package main
/*import (
"net/http"
"path"
"time"
)
const (
maxRetries = 2
timeout = 25 * time.Second
)
type HttpDirectory struct {
}
func (h *HttpDirectory) ListDir(filePath string) {
dir := path.Base(filePath)
}
func requestFile(url string, baseUrl string) (err error) {
retries := maxRetries
for retries > 0 {
res, err := http.Head(url)
if err != nil { return }
}
}
*/