The μC/HTTPs module has to be configured according to specific needs. A template configuration file (http-s_cfg.h
) is included in the module package (see µC/HTTPs Directories and Files), and this configuration should be copied into the application directory and included to the project. Here is the list of the values and description of each of the configuration variable. However, keep in mind that future releases of this module might include more configuration options.
The configuration set in the Module configuration affect all Web server instance. The following configuration value allow to reduce the code footprint and can impact the overall performance of all web server instance.
Argument Checking and Debug Configuration
Most functions in μC/HTTPs include code to validate arguments that are passed to it. Specifically, μC/TCP-IP checks to see if passed pointers are NULL, if arguments are within valid ranges, etc. The following constants configure additional argument checking.
A fair amount of code in μC/HTTPs has been included to simplify debugging. There are several configuration constants used to aid debugging.
Counter Configuration
μC/HTTPs contains code that increments counters to keep track of statistics such as the number of request received, the number of connection processed, etc. Also, μC/HTTPs contains counters that are incremented when error conditions are detected. The following constants enable or disable HTTP counters.
Dynamic Content Configuration
A considerable amount of code in μC/HTTPs has been included to parse, replace and transmit html document with dynamic content.<
CGI / Form Submission Configuration
µC/HTTPs allows to use forms in HTML documents using the HTTP POST method. µC/HTTPs is designed to manage different type of form encoding and also to upload files from an HTML form.
Header Field Configuration
μC/HTTPs contains code that allow the upper application to receive header field received in the request message and add header field to be transmitted with the response message.
Proxy Configuration
µC/HTTPs can be accessed even if it’s located behind a proxy.