qthttpserver/src
Matthias Rauter 962d95298f Simplify and constrain route API
The route convenience method of QHttpServer was a purely variadic
template function. However, it expected a strict syntax of (QString,
Method, Rule parameters..., Functor). The Rule parameters are
forwarded to the constructor of the Rule that is created. This was
not documented.

The Functor is expected to follow some rules too. This is checked by
QHttpServerRouterViewTraits.

This change expresses the synatax in the function declaration as
(QString, Method, Functor) and removes the possibility to forward
parameters to the constructor of rule. The route method now returns a
pointer to the new rule, which can be used to set parameters instead.

Constraints to the Functor are still checked by QHttp...ViewTraits.

Pick-to: 6.8
Task-Id: QTBUG-128113
Change-Id: Id3d075a46e86169521bafd3ecb4c9c58ba8dff2c
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2024-08-27 20:18:50 +02:00
..
httpserver Simplify and constrain route API 2024-08-27 20:18:50 +02:00
CMakeLists.txt CMake: Annotate some targets with SBOM information 2024-07-11 12:02:58 +02:00