Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121470

Let QHttpServerRouterRule accept variadic arguments?

XMLWordPrintable

      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?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            oyheskes Øystein Heskestad
            luqiaochen Luqiao Chen
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes