Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
None
Description
Right now we must have 1 <arg> for 1 argument in path pattern so that handler can parse it correctly. For exampe,
httpServer.route("/query/<arg>", [] (const QHttpServerRequest &request) { return host(request) + u"/query/"_s; });
only matchs single argument, e.g. server.port/query/1. I don't think there is a way to have variadic argument in URL, e.g. server.port/query/1/2/3/as_many_as_needed/..., right now. So maybe implement such functionality in some future release?