Documentation
¶
Index ¶
Constants ¶
View Source
const ( HEALTH_REQ = "GET /health HTTP" OK_RESPONSE = "HTTP/1.1 200 OK\r\n" BAD_RESPONSE = "HTTP/1.1 400 Bad Request\r\n" )
Variables ¶
This section is empty.
Functions ¶
func HandleHealthCheck ¶
Given a connectioned client conn and its message as a byte-slice buf, validate it's an HTTP request. If so, write a "204 No Content" http response letting the caller know bolt-proxy is alive.
func IsHealthCheck ¶
Check if the given buf looks like an HTTP GET to our /health endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.