Server side speedtest implementation (#12750)

This commit is contained in:
Krishna Srinivas
2021-07-27 12:55:56 -07:00
committed by GitHub
parent 471b4fd0c9
commit aa0c28809b
10 changed files with 297 additions and 4 deletions

View File

@@ -204,6 +204,8 @@ func registerAdminRouter(router *mux.Router, enableConfigOps bool) {
Queries("paths", "{paths:.*}").HandlerFunc(gz(httpTraceHdrs(adminAPI.ForceUnlockHandler)))
}
adminRouter.Methods(http.MethodPost).Path(adminVersion + "/speedtest").HandlerFunc(httpTraceHdrs(adminAPI.SpeedtestHandler))
// HTTP Trace
adminRouter.Methods(http.MethodGet).Path(adminVersion + "/trace").HandlerFunc(gz(adminAPI.TraceHandler))