Expand description
Versions between clients and the server (see archive/PROJECT.md, Web UI and CLI: compatibility).
Every response carries Schedr-Server-Version. A client sending Schedr-Client-Version
with another major version is refused, with what to install; any minor version works
(the API changes only additively within a major). Clients that send no version (scripts,
generated clients) are served.
Constants§
- CLIENT_
VERSION_ HEADER - The header a client sends its version in.
- SERVER_
VERSION_ HEADER - The header every response carries the server’s version in.
Functions§
- check_
client_ version - Checks a client’s version against the server’s.
- versions
- Middleware: refuses clients of another major version and adds the server’s version.