func statusHandler(w http.ResponseWriter, req *http.Request) {
	if bbpd_runinfo.BBPDAbortIfClosed(w) {
		return
	}
	if req.Method != "GET" {
		e := "method only supports GET"
		http.Error(w, e, http.StatusBadRequest)
		return
	}
	var ss Status_Struct
	ss.Args = make(map[string]string)
	ss.Status = "ready"

	ss.Args[bbpd_const.X_BBPD_VERBOSE] = "set '-H \"X-Bbpd-Verbose: True\" ' to get verbose output"
	ss.Args[bbpd_const.X_BBPD_INDENT] = "set '-H \"X-Bbpd-Indent: True\" ' to indent the top-level json"
	ss.AvailableHandlers = availableHandlers
	ss.Summary = bbpd_stats.GetSummary()
	sj, sj_err := json.Marshal(ss)
	if sj_err != nil {
		e := fmt.Sprintf("bbpd_route.statusHandler:status marshal err %s", sj_err.Error())
		log.Printf(e)
		http.Error(w, e, http.StatusInternalServerError)
		return
	}

	mr_err := route_response.MakeRouteResponse(
		w,
		req,
		sj,
		http.StatusOK,
		time.Now(),
		"Status")
	if mr_err != nil {
		e := fmt.Sprintf("bbpd_route.StatusHandler %s", mr_err.Error())
		log.Printf(e)
	}
}
// StatusHandler displays available handlers.
StatusHandler displays available handlers.
// StatusHandler displays available handlers .
func statusHandler(w http.ResponseWriter, req *http.Request) {
	if bbpd_runinfo.BBPDAbortIfClosed(w) {
		return
	}
	if req.Method != "GET" {
		e := "method only supports GET"
		http.Error(w, e, http.StatusBadRequest)
		return
	}
	var ss Status_Struct
	ss.Args = make(map[string]string)
	ss.Status = "ready"
	ss.Args[bbpd_const.X_BBPD_VERBOSE] = "set '-H \"X-Bbpd-Verbose: True\" ' to get verbose output"
	ss.Args[bbpd_const.X_BBPD_INDENT] = "set '-H \"X-Bbpd-Indent: True\" ' to indent the top-level json"
	ss.AvailableHandlers = availableHandlers
	ss.Summary = bbpd_stats.GetSummary()
	sj, sj_err := json.Marshal(ss)
	if sj_err != nil {
		e := fmt.Sprintf("bbpd_route.statusHandler:status marshal err %s", sj_err.Error())
		log.Printf(e)
		http.Error(w, e, http.StatusInternalServerError)
		return
	}
	mr_err := route_response.MakeRouteResponse(
		w,
		req,
		sj,
		http.StatusOK,
		time.Now(),
		"Status")
	if mr_err != nil {
		e := fmt.Sprintf("bbpd_route.StatusHandler %s", mr_err.Error())
		log.Printf(e)
	}
}
func statusHandler ( w http . ResponseWriter , req * http . Request ) { if bbpd_runinfo . BBPDAbortIfClosed ( w ) { return } if req . Method != " " { e := " " http . Error ( w , e , http . StatusBadRequest ) return } var ss Status_Struct ss . Args = make ( map [ string ] string ) ss . Status = " " ss . Args [ bbpd_const . X_BBPD_VERBOSE ] = " \" \" " ss . Args [ bbpd_const . X_BBPD_INDENT ] = " \" \" " ss . AvailableHandlers = availableHandlers ss . Summary = bbpd_stats . GetSummary ( ) sj , sj_err := json . Marshal ( ss ) if sj_err != nil { e := fmt . Sprintf ( " " , sj_err . Error ( ) ) log . Printf ( e ) http . Error ( w , e , http . StatusInternalServerError ) return } mr_err := route_response . MakeRouteResponse ( w , req , sj , http . StatusOK , time . Now ( ) , " " ) if mr_err != nil { e := fmt . Sprintf ( " " , mr_err . Error ( ) ) log . Printf ( e ) } }
StatusHandler displays available handlers.
StatusHandler displays available handlers .