mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-25 03:43:27 -04:00
In conf_errors struct, arbitrary integer values were used for both <type> field and <status> array. This renders the code difficult to follow. Replaces these values with proper enums type. Two new types are defined for each of these fields. The first one represents the directive type, derived from the keyword used (errorfile vs errorfiles). This directly represents which part of <info> union should be manipulated. The second enum is used for errorfiles directive with a reference on a http-errors section. It indicates whether or not if a status code should be imported from this section, and if this import is explicit or implicit. |
||
|---|---|---|
| .. | ||
| haproxy | ||
| import | ||
| make | ||