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

Let QHttpServerRouterRule accept variadic arguments?

    XMLWordPrintable

Details

    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?

      Attachments

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

        Activity

          People

            mikhailsvetkin Mikhail Svetkin
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes