http

package
v1.5.0-dev14 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeFileName added in v1.1.4

func SanitizeFileName(fullURL string) (string, error)

SanitizeFileName creates a flat filename from a URL path.

Types

type Downloader

type Downloader struct {
	// contains filtered or unexported fields
}

func NewHTTPDownloader

func NewHTTPDownloader() *Downloader

NewHTTPDownloader creates a new HTTPDownloader with the given settings.

func (*Downloader) FetchResult

func (httpDownloader *Downloader) FetchResult(ctx context.Context, item downloader.DownloadItem) (string, error)

FetchResult downloads the result of a computation and saves it to a local file.

func (*Downloader) IsInstalled

func (httpDownloader *Downloader) IsInstalled(ctx context.Context) (bool, error)

IsInstalled checks if the downloader is ready to be used.

Jump to

Keyboard shortcuts

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