APIReference.md 5.0 KB

CivetWeb API Reference

CivetWeb is often used as HTTP and HTTPS library inside a larger application. A C API is available to integrate the CivetWeb functionality in a larger codebase. A C++ wrapper is also available, although it is not guaranteed that all functionality available through the C API can also be accessed from C++. This document describes the public C API. Basic usage examples of the API can be found in Embedding.md.

Macros

Macro Description
CIVETWEB_VERSION The current version of the software as a string with the major and minor version number seperated with a dot. For version 1.9, this string will have the value "1.9", for thw first patch of this version "1.9.1".
CIVETWEB_VERSION_MAJOR The current major version as number, e.g., (1) for version 1.9.
CIVETWEB_VERSION_MINOR The current minor version as number, e.g., (9) for version 1.9.
CIVETWEB_VERSION_PATCH The current patch version as number, e.g., (0) for version 1.9 or (1) for version 1.9.1.

Structures

Functions