download

package
v0.0.0-...-34378b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2016 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Download

type Download struct {
	EnableLogging                bool
	LogAllHeaders                bool
	ShouldDownloadResponseFilter func(*http.Response) bool
}

func (*Download) DownloadFile

func (d *Download) DownloadFile(url string, downloadToDirectoryPath string) (downlaodedFilePath string, err error)

func (*Download) TrimExtraPartsFromFileName

func (d *Download) TrimExtraPartsFromFileName(fileName string) (adjustedFileName string)

type RedirectHandlingTransport

type RedirectHandlingTransport struct {
	RedirectedTo string
	Transport    http.RoundTripper
}

func (RedirectHandlingTransport) RoundTrip

func (l RedirectHandlingTransport) RoundTrip(req *http.Request) (resp *http.Response, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL