Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrBadInvariant = ExpectedError("Bad invariant") ErrCanceledByUser = ExpectedError("Canceled by user") ErrMaxRedirect = ExpectedError("Max redirections") ErrMaxRetry = ExpectedError("Max retries") )
View Source
const ( DEBUG = iota INFO WARN ERRO LEVELS )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadHttpStatus ¶ added in v1.22.0
type BadHttpStatus int
func (BadHttpStatus) Error ¶ added in v1.22.0
func (e BadHttpStatus) Error() string
type Cmd ¶
type ExpectedError ¶
type ExpectedError string
func (ExpectedError) Error ¶
func (e ExpectedError) Error() string
type Session ¶
type Session struct { URL string OutputName string ContentMD5 string AcceptRanges string ContentType string StatusCode int ContentLength int64 Redirected bool Elapsed time.Duration HeaderMap map[string]string Parts []*Part // contains filtered or unexported fields }
Session represents download session state
Source Files ¶
Click to show internal directories.
Click to hide internal directories.