Lines Matching refs:http
54 func cors(fs http.Handler, version string) http.HandlerFunc {
55 return func(w http.ResponseWriter, r *http.Request) {
128 mux := http.NewServeMux()
133 …mux.Handle("/application/upload/", http.StripPrefix("/application/upload/", http.FileServer(http.D…
136 fs := http.FileServer(http.Dir(exPath + "/"))
137 mux.Handle("/application/", http.StripPrefix("/application/", cors(fs, version)))
139 ser := &http.Server{
148 ser := &http.Server{
185 func consoleHandler(w http.ResponseWriter, r *http.Request) {
204 func serverInfo(w http.ResponseWriter, r *http.Request) {
245 func resp(w *http.ResponseWriter) func(bool, int, string, map[string]interface{}) {
266 func get(url string) (*http.Response, error) {
268 c := &http.Client{
269 Transport: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}},
336 func downloadHandler(w http.ResponseWriter, r *http.Request) {