downloader

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadToMemoryResty added in v1.0.4

func DownloadToMemoryResty(ctx context.Context,
	url string, headers map[string]string, handlers ...i.Outbound) ([]byte, http.Header, error)

Types

type Downloader

type Downloader struct {
	HandlerPicker i.Router
}

func NewDownloader

func NewDownloader(handlerPicker i.Router) *Downloader

func (*Downloader) Download

func (d *Downloader) Download(ctx context.Context, u string, headers map[string]string) ([]byte, http.Header, error)

type Downloader0

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

func NewDownloader0

func NewDownloader0(handlers []i.Outbound) *Downloader0

func (*Downloader0) Download

func (d *Downloader0) Download(ctx context.Context, url string, headers map[string]string) ([]byte, http.Header, error)

Jump to

Keyboard shortcuts

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