estuary / data-plane-gateway

Other
0 stars 0 forks source link

add /healthz endpoint for health checks #6

Closed jgraettinger closed 2 years ago

jgraettinger commented 2 years ago

Fixes #5

Tested locally:

$ curl -v http://localhost:12345/healthz
*   Trying 127.0.0.1:12345...
* Connected to localhost (127.0.0.1) port 12345 (#0)
> GET /healthz HTTP/1.1
> Host: localhost:12345
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Thu, 07 Jul 2022 16:30:25 GMT
< Content-Length: 3
< Content-Type: text/plain; charset=utf-8
<
OK
* Connection #0 to host localhost left intact
jgraettinger commented 2 years ago

FYI @skord