26 explicit Server(QObject *parent =
nullptr);
27 Server(ServerType type, QObject *parent =
nullptr);
30 bool isListening()
const;
34 QJsonObject configuration()
const;
37 QString errorString()
const;
41 HandlerType handlerType()
const override;
48 Server(ServerPrivate *d, QObject *parent);
63 void setError(
int code,
const QString &str);
65 QScopedPointer<ServerPrivate>
d_ptr;
68 void setListening(
bool listening);
70 friend class ServerPrivate;
71 friend class ResourceHandler;
Represents the body of an HTTP request.
Definition body.h:27