constants.go 462 B

1234567891011121314151617181920212223
  1. package base
  2. type Status int
  3. const (
  4. DownloadStatusReady Status = iota
  5. DownloadStatusStart
  6. DownloadStatusPause
  7. DownloadStatusError
  8. DownloadStatusDone
  9. )
  10. const (
  11. HttpCodeOK = 200
  12. HttpCodePartialContent = 206
  13. HttpHeaderRange = "Range"
  14. HttpHeaderContentLength = "Content-Length"
  15. HttpHeaderContentRange = "Content-Range"
  16. HttpHeaderContentDisposition = "Content-Disposition"
  17. HttpHeaderRangeFormat = "bytes=%d-%d"
  18. )