Documentation
¶
Index ¶
- func DebugInfo(w http.ResponseWriter, req *http.Request)
- func DownloadByGetter(url string, header map[string][]string, name string) (string, error)
- func GetArgs(w http.ResponseWriter, r *http.Request)
- func GetEnv(w http.ResponseWriter, r *http.Request)
- func Process(w http.ResponseWriter, r *http.Request)
- type DFGetter
- type DFRoundTripper
- type Downloader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugInfo ¶
func DebugInfo(w http.ResponseWriter, req *http.Request)
DebugInfo responds the inner http server running information.
func DownloadByGetter ¶
DownloadByGetter is to download file by DFGetter
func GetArgs ¶
func GetArgs(w http.ResponseWriter, r *http.Request)
GetArgs returns all the arguments of command-line except the program name.
Types ¶
type DFGetter ¶
type DFGetter struct {
// contains filtered or unexported fields
}
DFGetter implements Downloader to download file by dragonfly
type DFRoundTripper ¶
type DFRoundTripper struct {
Round *http.Transport
Round2 http.RoundTripper
}
DFRoundTripper implements RoundTripper for dfget. It uses http.fileTransport to serve requests that need to use dfget, and uses http.Transport to serve the other requests.