1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server/router
Sebastiaan van Stijn adf4bf772d
API: add "Swarm" header to _ping endpoint
This adds an additional "Swarm" header to the _ping endpoint response,
which allows a client to detect if Swarm is enabled on the daemon, without
having to call additional endpoints.

This change is not versioned in the API, and will be returned irregardless
of the API version that is used. Clients should fall back to using other
endpoints to get this information if the header is not present.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-03-25 23:54:14 +01:00
..
build api/server: build: refactor for better readability 2019-12-04 16:19:01 +01:00
checkpoint Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
container errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus 2022-03-21 12:22:39 +01:00
debug Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
distribution Remove more of registry v1 code. 2021-02-23 09:49:46 +01:00
grpc grpc: make sure typed errors handler is installed 2021-04-26 22:38:59 -07:00
image search: remove parsing JSON filters out of the backend 2022-03-18 09:44:55 +01:00
network api: filters: return correct status on invalid filters 2022-03-18 09:44:50 +01:00
plugin api: normalize comment formatting 2019-11-27 15:37:30 +01:00
session move /session api endpoint out of experimental 2018-08-21 22:43:34 +00:00
swarm api: filters: return correct status on invalid filters 2022-03-18 09:44:50 +01:00
system API: add "Swarm" header to _ping endpoint 2022-03-25 23:54:14 +01:00
volume api: filters: return correct status on invalid filters 2022-03-18 09:44:50 +01:00
experimental.go fix typos 2018-09-01 21:26:38 +08:00
local.go api/server/router: use consts for HTTP methods 2019-11-26 21:55:29 +01:00
router.go Add canonical import comment 2018-02-05 16:51:57 -05:00