4#ifndef TESTHTTPSERVER_P_H
5#define TESTHTTPSERVER_P_H
23#include <QWaitCondition>
24#include <private/qglobal_p.h>
75 QList<QPair<QString, Mode> > m_directories;
76 QHash<QTcpSocket *, QByteArray> m_dataCache;
77 QList<QPair<QTcpSocket *, QByteArray> > m_toSend;
78 QSet<QString> m_contentSubstitutedFileNames;
81 QList<QByteArray> headerExactMatches;
82 QList<QByteArray> headerPrefixes;
90 QHash<QString, QString> m_aliases;
91 QHash<QString, QString> m_redirects;
114 QHash<QString, TestHTTPServer::Mode> m_dirs;
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTcpServer class provides a TCP-based server.
The QTcpSocket class provides a TCP socket.
provides a very, very basic HTTP server for testing.
QString errorString() const
void addAlias(const QString &filename, const QString &aliasName)
bool wait(const QUrl &expect, const QUrl &reply, const QUrl &body)
bool serveDirectory(const QString &, Mode=Normal)
void registerFileNameForContentSubstitution(const QString &fileName)
void addRedirect(const QString &filename, const QString &redirectName)
QString urlString(const QString &documentPath) const
QString urlString(const QString &documentPath) const
~ThreadedTestHTTPServer()
ThreadedTestHTTPServer(const QString &dir, TestHTTPServer::Mode mode=TestHTTPServer::Normal)
Combined button and popup list for selecting options.
QUrl url("example.com")
[constructor-url-reference]