Home | History | Annotate | Download | only in app

Lines Matching refs:http

10 	"net/http"
22 type contextHandler func(c context.Context, w http.ResponseWriter, r *http.Request) error
24 func handlerWrapper(fn contextHandler) http.Handler {
28 func handleContext(fn contextHandler) http.Handler {
29 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
40 w.WriteHeader(http.StatusForbidden)
43 http.Error(w, err.Error(), http.StatusInternalServerError)
50 w.WriteHeader(http.StatusInternalServerError)
52 http.Error(w, err.Error(), http.StatusInternalServerError)
61 return func(c context.Context, w http.ResponseWriter, r *http.Request) error {
69 func serveTemplate(w http.ResponseWriter, name string, data interface{}) error {
83 func commonHeader(c context.Context, r *http.Request) *uiHeader {