mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
24 lines
548 B
Go
24 lines
548 B
Go
package base
|
|
|
|
type Status string
|
|
|
|
const (
|
|
DownloadStatusReady Status = "ready"
|
|
DownloadStatusRunning Status = "running"
|
|
DownloadStatusPause Status = "pause"
|
|
DownloadStatusError Status = "error"
|
|
DownloadStatusDone Status = "done"
|
|
)
|
|
|
|
const (
|
|
HttpCodeOK = 200
|
|
HttpCodePartialContent = 206
|
|
|
|
HttpHeaderRange = "Range"
|
|
HttpHeaderContentLength = "Content-Length"
|
|
HttpHeaderContentRange = "Content-Range"
|
|
HttpHeaderContentDisposition = "Content-Disposition"
|
|
|
|
HttpHeaderRangeFormat = "bytes=%d-%d"
|
|
)
|