Lines Matching refs:http
12 "net/http"
29 http.Handle("/api", handleJSON(handleAPI))
51 type JSONHandler func(c context.Context, r *http.Request) (interface{}, error)
52 type APIHandler func(c context.Context, r *http.Request, payload []byte) (interface{}, error)
53 type APINamespaceHandler func(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error)
69 func handleJSON(fn JSONHandler) http.Handler {
70 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
78 http.Error(w, err.Error(), http.StatusInternalServerError)
97 func handleAPI(c context.Context, r *http.Request) (reply interface{}, err error) {
161 func apiLogError(c context.Context, r *http.Request, payload []byte) (interface{}, error) {
170 func apiBuilderPoll(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error) {
218 func apiJobPoll(c context.Context, r *http.Request, payload []byte) (interface{}, error) {
229 func apiJobDone(c context.Context, r *http.Request, payload []byte) (interface{}, error) {
238 func apiUploadBuild(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error) {
481 func apiReportBuildError(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error) {
505 func apiReportCrash(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error) {
706 func apiReportFailedRepro(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error) {
740 func apiNeedRepro(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error) {
766 func apiManagerStats(c context.Context, ns string, r *http.Request, payload []byte) (interface{}, error) {