MCPcopy Create free account
hub / github.com/Code-Hex/pget / WithReferer

Function WithReferer

download.go:135–139  ·  view source on GitHub ↗
(referer string)

Source from the content-addressed store, hash-verified

133}
134
135func WithReferer(referer string) DownloadOption {
136 return func(c *DownloadConfig) {
137 c.makeRequestOption.referer = referer
138 }
139}
140
141func Download(ctx context.Context, c *DownloadConfig, opts ...DownloadOption) error {
142 partialDir := getPartialDirname(c.Dirname, c.Filename, c.Procs)

Callers 1

RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected