Lines Matching refs:http
17 "net/http"
18 "net/http/httptest"
93 if !ok || httpErr.Code != http.StatusForbidden {
140 // GET sends admin-authorized HTTP GET request to the app.
146 // AuthGET sends HTTP GET request to the app with the specified authorization.
151 // POST sends admin-authorized HTTP POST request to the app.
175 http.DefaultServeMux.ServeHTTP(w, r)
177 if w.Code != http.StatusOK {
240 doer := func(r *http.Request) (*http.Response, error) {
243 http.DefaultServeMux.ServeHTTP(w, r)
249 res := &http.Response{
251 Status: http.StatusText(w.Code),
363 func registerContext(r *http.Request, c *Ctx) {