hashicorp/faas-nomad

View on GitHub
handlers/health.go

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package handlers

import "net/http"

// MakeHealthHandler returns 200/OK when healthy
func MakeHealthHandler() http.HandlerFunc {
    return func(w http.ResponseWriter, r *http.Request) {
        defer r.Body.Close()

        w.WriteHeader(http.StatusOK)
    }
}