示例#1
0
文件: download.go 项目: OSBI/juju
func (handleDownloadDeps) ExtractDownloadRequest(req *http.Request) string {
	return api.ExtractDownloadRequest(req)
}
示例#2
0
// HandleDownload implements LegacyHTTPHandlerDeps.
func (deps legacyHTTPHandlerDeps) HandleDownload(opener resource.Opener, req *http.Request) (resource.Opened, error) {
	name := api.ExtractDownloadRequest(req)
	return opener.OpenResource(name)
}