mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 14:53:44 +00:00
重构http下载逻辑
This commit is contained in:
1 parent
7cd0ea1c6b
commit
5a0d559112
3 files changed
+69
-62
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package common
|
||||
|
||||
import "errors"
|
||||
|
||||
type Status int
|
||||
|
||||
const (
|
||||
@@ -21,3 +23,8 @@ const (
|
||||
|
||||
HttpHeaderRangeFormat = "bytes=%d-%d"
|
||||
)
|
||||
|
||||
var (
|
||||
PauseErr = errors.New("pause")
|
||||
DeleteErr = errors.New("delete")
|
||||
)
|
||||
Reference in new issue
Block a user