mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
29 lines
818 B
Go
29 lines
818 B
Go
package base
|
|
|
|
type Status string
|
|
|
|
const (
|
|
DownloadStatusReady Status = "ready" // task create but not start
|
|
DownloadStatusRunning Status = "running"
|
|
DownloadStatusPause Status = "pause"
|
|
DownloadStatusWait Status = "wait" // task is wait for running
|
|
DownloadStatusError Status = "error"
|
|
DownloadStatusDone Status = "done"
|
|
)
|
|
|
|
const (
|
|
HttpCodeOK = 200
|
|
HttpCodePartialContent = 206
|
|
|
|
HttpHeaderRange = "Range"
|
|
HttpHeaderAcceptRanges = "Accept-Ranges"
|
|
HttpHeaderContentLength = "Content-Length"
|
|
HttpHeaderContentRange = "Content-Range"
|
|
HttpHeaderContentDisposition = "Content-Disposition"
|
|
HttpHeaderUserAgent = "User-Agent"
|
|
HttpHeaderLastModified = "Last-Modified"
|
|
|
|
HttpHeaderBytes = "bytes"
|
|
HttpHeaderRangeFormat = "bytes=%d-%d"
|
|
)
|