Nt HTTP Server C++ Classes
Classes for embedding an HTTP server in an application.
Using the Module
target_link_libraries(app PRIVATE Nt::HttpServer)
Nt HTTP Server answers HTTP/1.1 requests from the Nt Core event loop. QHttpServer maps URL paths to handlers, with typed path arguments; QAbstractHttpServer is the base for servers that answer requests another way.
See Using Nt HTTP Server for a walk through, and examples/httpserver/hello_server.cpp for a complete program.
Classes
| QAbstractHttpServer | The QAbstractHttpServer class is the base of HTTP servers: it accepts connections and parses requests. |
| QHttpServer | The QHttpServer class is an HTTP server that answers requests with routes. |
| QHttpServerRequest | The QHttpServerRequest class holds a request that a QAbstractHttpServer received. |
| QHttpServerResponder | The QHttpServerResponder class writes the response to one request. |
| QHttpServerResponse | The QHttpServerResponse class holds a complete response: a status code, header fields and a body. |
| QHttpServerRouterRule | The QHttpServerRouterRule class is a rule that QHttpServer::route() added. |
| QHttpServerWebSocketUpgradeResponse | The QHttpServerWebSocketUpgradeResponse class is the verdict of a verifier on a WebSocket upgrade request. |