Exemple #1
0
func (handleDownloadDeps) ExtractDownloadRequest(req *http.Request) string {
	return api.ExtractDownloadRequest(req)
}
Exemple #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)
}