diff options
| author | Stefan Boberg <[email protected]> | 2026-03-27 16:25:21 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-27 16:25:21 +0100 |
| commit | 86c95e3291542433190e48fd7e7ad0a414644bc1 (patch) | |
| tree | c8c05200e2889a4c4bc87cbd3fd47ee3021bc24f /src/zenhttp/include | |
| parent | 5.8.0-pre0 (diff) | |
| download | zen-86c95e3291542433190e48fd7e7ad0a414644bc1.tar.xz zen-86c95e3291542433190e48fd7e7ad0a414644bc1.zip | |
Misc small fixes (#897)
- **Eliminate `<regex>` usage** — Replaced `std::regex`-based URL parsing in `jupiterbuildstorage.cpp` with manual `string_view` parsing. Added `CXXOPTS_NO_REGEX` to disable regex in cxxopts. Includes comprehensive tests for the new URL parser.
- **Add missing HTTP response codes** — Added `102`, `103`, `203`, `207`, `208`, `226`, `306`, `421`, `425`, `451` to the enum and reason string lookup.
- **Add `ForceColor` support to zen CLI** — Plumbed the `ForceColor` logging option through to the zen client.
- **Add `.clangd` config** — Strips MSVC-specific flags clangd can't handle and suppresses noisy clang-tidy checks.
- **Generic `fmt::formatter` for `ToString`** — Concept-based formatter that auto-formats any type with a free `ToString()` function, removing the need for per-type specializations.
- **Fix OpenSSL dependency** — Changed `zenhorde` to use `openssl3` package on Linux/macOS.
- **Add `<cmath>` include** — Missing include in `hyperloglog.h`.
- **GCC compile fix** — Moved `static constinit` variable inside lambda in `logging.cpp`.
Diffstat (limited to 'src/zenhttp/include')
| -rw-r--r-- | src/zenhttp/include/zenhttp/httpcommon.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenhttp/include/zenhttp/httpcommon.h b/src/zenhttp/include/zenhttp/httpcommon.h index 8fca35ac5..f9a99f3cc 100644 --- a/src/zenhttp/include/zenhttp/httpcommon.h +++ b/src/zenhttp/include/zenhttp/httpcommon.h @@ -91,6 +91,7 @@ enum class HttpResponseCode //!< were not for the fact that the condition has evaluated to false. UseProxy = 305, //!< \deprecated \parblock Due to security concerns regarding in-band configuration of a proxy. \endparblock //!< The requested resource MUST be accessed through the proxy given by the Location field. + SwitchProxy = 306, //!< \deprecated No longer used. Originally meant subsequent requests should use the specified proxy. TemporaryRedirect = 307, //!< Indicates that the target resource resides temporarily under a different URI and the user agent MUST NOT //!< change the request method if it performs an automatic redirection to that URI. PermanentRedirect = 308, //!< The target resource has been assigned a new permanent URI and any future references to this resource @@ -133,12 +134,14 @@ enum class HttpResponseCode ExpectationFailed = 417, //!< Indicates that the expectation given in the request's Expect header field could not be met by at least //!< one of the inbound servers. ImATeapot = 418, //!< Any attempt to brew coffee with a teapot should result in the error code 418 I'm a teapot. + MisdirectedRequest = 421, //!< Indicates that the request was directed at a server that is not able to produce a response. UnprocessableEntity = 422, //!< Means the server understands the content type of the request entity (hence a 415(Unsupported Media //!< Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad //!< Request) status code is inappropriate) but was unable to process the contained instructions. Locked = 423, //!< Means the source or destination resource of a method is locked. FailedDependency = 424, //!< Means that the method could not be performed on the resource because the requested action depended on //!< another action and that action failed. + TooEarly = 425, //!< Indicates that the server is unwilling to risk processing a request that might be replayed. UpgradeRequired = 426, //!< Indicates that the server refuses to perform the request using the current protocol but might be willing to //!< do so after the client upgrades to a different protocol. PreconditionRequired = 428, //!< Indicates that the origin server requires the request to be conditional. |