summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/generic
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-03 13:49:07 -0800
committerGitHub <noreply@github.com>2020-02-03 13:49:07 -0800
commit234e8382e59c566330e023fd11f4b590aa1129da (patch)
tree1f78b3b4d59f661947fc012de503622c44bb556e /pkg/api/handlers/generic
parent23f795786224c27f737e9043e9d513f54fa35ba8 (diff)
parent4d301c8c4f3301bc99a55752b387ef4f7be9de5f (diff)
downloadpodman-234e8382e59c566330e023fd11f4b590aa1129da.tar.gz
podman-234e8382e59c566330e023fd11f4b590aa1129da.tar.bz2
podman-234e8382e59c566330e023fd11f4b590aa1129da.zip
Merge pull request #5067 from jwhonce/wip/ping
[CI:DOCS] Update /_ping support
Diffstat (limited to 'pkg/api/handlers/generic')
-rw-r--r--pkg/api/handlers/generic/ping.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/pkg/api/handlers/generic/ping.go b/pkg/api/handlers/generic/ping.go
deleted file mode 100644
index 00afd86bc..000000000
--- a/pkg/api/handlers/generic/ping.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package generic
-
-import (
- "fmt"
- "net/http"
-
- "github.com/containers/libpod/pkg/api/handlers"
-)
-
-func PingGET(w http.ResponseWriter, _ *http.Request) {
- setHeaders(w)
- fmt.Fprintln(w, "OK")
-}
-
-func PingHEAD(w http.ResponseWriter, _ *http.Request) {
- setHeaders(w)
- fmt.Fprintln(w, "")
-}
-
-func setHeaders(w http.ResponseWriter) {
- w.Header().Set("API-Version", handlers.DefaultApiVersion)
- w.Header().Set("BuildKit-Version", "")
- w.Header().Set("Docker-Experimental", "true")
- w.Header().Set("Cache-Control", "no-cache")
- w.Header().Set("Pragma", "no-cache")
- w.WriteHeader(http.StatusOK)
-}