Skip to main content

Module version

Module version 

Source
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.