Simple Example▲
This example shows how to set up a server using the QHttpServer class. The server is bound to an incoming port using the listen() function, and the route() function is used to add a handler for each of several different incoming URLs. For one of the URLs, "/auth", Basic HTTP Authentication is used.