Documentation
¶
Index ¶
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 GetArgs ¶
func GetArgs(w http.ResponseWriter, r *http.Request)
GetArgs returns all the arguments of command-line except the program name.
Types ¶
type DFRoundTripper ¶
type DFRoundTripper struct {
Round *http.Transport
Round2 http.RoundTripper
Downloader downloader.Interface
}
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.
func NewDFRoundTripper ¶ added in v0.3.0
func NewDFRoundTripper(cfg *tls.Config) *DFRoundTripper
NewDFRoundTripper return the default DFRoundTripper.
Click to show internal directories.
Click to hide internal directories.