diff options
author | Behnam M <58621210+ibehnam@users.noreply.github.com> | 2024-01-10 14:56:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 21:56:05 +0200 |
commit | cd108e641dbdedd8c5641c4cec1762f751f38136 (patch) | |
tree | 4a0a1576c200d25f6963ff5a8e2ca17022e56246 /examples/server/httplib.h | |
parent | 57d016ba2d46a6e22517a31a75cebb48f9e234b6 (diff) |
server : add a `/health` endpoint (#4860)
* added /health endpoint to the server
* added comments on the additional /health endpoint
* Better handling of server state
When the model is being loaded, the server state is `LOADING_MODEL`. If model-loading fails, the server state becomes `ERROR`, otherwise it becomes `READY`. The `/health` endpoint provides more granular messages now according to the server_state value.
* initialized server_state
* fixed a typo
* starting http server before initializing the model
* Update server.cpp
* Update server.cpp
* fixes
* fixes
* fixes
* made ServerState atomic and turned two-line spaces into one-line
Diffstat (limited to 'examples/server/httplib.h')
0 files changed, 0 insertions, 0 deletions