18 #ifndef NURIA_HTTPSERVER_HPP
19 #define NURIA_HTTPSERVER_HPP
21 #include "network_global.hpp"
22 #include <QSslCertificate>
23 #include <QHostAddress>
30 class HttpServerPrivate;
49 HttpServer (
bool supportSsl =
true, QObject *parent = 0);
67 bool listen (
const QHostAddress &interface = QHostAddress::Any, quint16 port = 80);
75 bool listenSecure (
const QHostAddress &interface = QHostAddress::Any, quint16 port = 443);
78 QSslCertificate localCertificate ()
const;
81 QSslKey privateKey ()
const;
87 const QString &fqdn ()
const;
93 void setLocalCertificate (
const QSslCertificate &cert);
99 void setPrivateKey (
const QSslKey &key);
111 int securePort ()
const;
118 void setFqdn (
const QString &fqdn);
136 bool invokeByPath (
HttpClient *client,
const QString &path);
142 void redirectClientToUseEncryption (
HttpClient *client);
145 HttpServerPrivate *d_ptr;
150 #endif // NURIA_HTTPSERVER_HPP
The HttpServer class provides a simple HTTP server. This server is directed at providing interactive ...
Definition: httpserver.hpp:40
The HttpClient class represents a connection to a client.
Definition: httpclient.hpp:92
The HttpNode class represents a virtual directory (or a virtual file) HttpServer uses these nodes to ...
Definition: httpnode.hpp:140