Commit Graph

361 Commits

Author SHA1 Message Date
Nathan Osman
1481a198e6 Examples have the ability to override the address used for listening. 2015-07-09 18:21:08 -07:00
Nathan Osman
f2345cfa7f Updated index page of documentation. 2015-07-09 16:46:03 -07:00
Nathan Osman
db4ac24351 Prevented possible crash due to a user-after-free bug (fixes #4). 2015-07-09 15:34:22 -07:00
Nathan Osman
1eefc63ca4 Added the stop() slot to QIODeviceCopier. 2015-07-09 14:58:24 -07:00
Nathan Osman
ddfb889c10 Fixed bug causing QHttpSocket::bytesAvailable() to return a higher number than expected (fixes #6). 2015-07-09 13:12:53 -07:00
Nathan Osman
80291a2f3f Added '/' to titles in directory listings. 2015-07-09 12:54:20 -07:00
Nathan Osman
f161b3cf94 Added a command-line option for specifying the port for the chatserver example. 2015-07-09 12:22:11 -07:00
Nathan Osman
48155bbb09 Removed dependency on QtWidgets from fileserver example. 2015-07-09 12:19:28 -07:00
Nathan Osman
6121a207ca Moved chat example to chatserver. 2015-07-09 11:40:15 -07:00
Nathan Osman
26a44967e8 Completed chat example. 2015-07-09 11:14:04 -07:00
Nathan Osman
7189f67bba Corrected order of signal emission after headers are parsed. 2015-07-09 09:24:53 -07:00
Nathan Osman
61a5f9ad74 Added some static files to the chat example. 2015-07-08 22:50:22 -07:00
Nathan Osman
61a536fbd0 Updated QHttpHandler documentation. 2015-07-08 20:08:07 -07:00
Nathan Osman
2205fb4166 Merged the QHttpHandler abstract base class with the QSubHandler class. 2015-07-08 19:31:00 -07:00
Nathan Osman
f1a29212f3 Fixed error causing incorrect source file to be installed with fileserver example. 2015-07-08 17:52:47 -07:00
Nathan Osman
d3ee4d6284 Added empty chat example. 2015-07-08 17:51:39 -07:00
Nathan Osman
71bc6fc73e Minor improvements to QFilesystemHandler. 2015-07-08 17:42:41 -07:00
Nathan Osman
b841ae16de Fixed memory leak in test suite. 2015-07-08 17:31:04 -07:00
Nathan Osman
ad8989bf07 Improved error handling in QObjectHandler. 2015-07-08 17:27:05 -07:00
Nathan Osman
cb5216ed71 Switched to using constants for status codes in tests. 2015-07-08 17:02:21 -07:00
Nathan Osman
89021152f1 Fixed order of operations in QObjectHandler tests that caused a problem on Windows. 2015-07-08 16:57:07 -07:00
Nathan Osman
04c4b13d6e Fixed logic error in QObjectHandler that would cause it to miss processing a socket. 2015-07-08 16:56:02 -07:00
Nathan Osman
afc2291bcc Fixed errors when running the QSubHandler tests on Windows. 2015-07-08 15:55:32 -07:00
Nathan Osman
706a13a5a2 Added QHttpSocket::isHeadersParsed() method. 2015-07-08 15:54:38 -07:00
Nathan Osman
a1223f2044 Switched to Qt's internal MIME lookup function for the filesystem handler. 2015-07-08 15:30:20 -07:00
Nathan Osman
6f851fd133 Implemented proper escaping for directory listings (fixes #3). 2015-07-06 13:54:08 -07:00
Nathan Osman
7efdf18770 Implemented directory listings. 2015-07-06 13:15:42 -07:00
Nathan Osman
bd9df9e1b3 Various minor fixes. 2015-07-04 22:06:38 -07:00
Nathan Osman
2593263b01 Minor updates to the QHttpSocket tests. 2015-07-04 20:27:35 -07:00
Nathan Osman
5deb8264c0 Added test for QHttpSocket::contentLength(). 2015-07-04 20:17:03 -07:00
Nathan Osman
89f3650862 Removed error() signal and added contentLength() method from QHttpSocket. 2015-07-04 15:08:00 -07:00
Nathan Osman
48c81ade3b Updated QHttpServer tests. 2015-07-03 17:42:35 -07:00
Nathan Osman
36e2614d48 Updated QHttpServer class. 2015-07-03 17:18:21 -07:00
Nathan Osman
6a77b01f27 Removed bool return value from QHttpHandler::process(). 2015-07-03 16:06:02 -07:00
Nathan Osman
f669517982 Fixed display of HTTP errors. 2015-07-03 15:16:16 -07:00
Nathan Osman
d9dd44c3b7 Renamed config.h to qhttpengine.h to avoid possible naming conflicts. 2015-07-02 23:18:17 -07:00
Nathan Osman
2c90fcf0fe Implemented fileserver example. 2015-07-02 19:48:22 -07:00
Nathan Osman
7ee24f5ac4 QHttpServer now directly derives from QTcpServer, removing the need for method duplication. 2015-07-02 19:45:18 -07:00
Nathan Osman
b03d07f14a Added ability to set document root for QFilesystemHandler after initialization. 2015-07-02 19:14:05 -07:00
Nathan Osman
17c3658af0 Added warning when Qt5Widgets module is unavailable for building examples. 2015-07-02 14:00:59 -07:00
Nathan Osman
1839eb8d5e Added examples directory. 2015-07-02 13:53:10 -07:00
Nathan Osman
24680c0d18 Added redirect test for QHttpSocket. 2015-07-02 12:31:50 -07:00
Nathan Osman
4cd89c1273 Implemented writeRedirect() and writeError() methods in QHttpSocket. 2015-07-02 12:15:50 -07:00
Nathan Osman
66efaf253c Documentation updates. 2015-07-02 11:37:41 -07:00
Nathan Osman
280d6dd049 Added predefined status code constants. 2015-07-02 11:36:40 -07:00
Nathan Osman
ad9942ec46 Updated header comment. 2015-07-02 00:28:38 -07:00
Nathan Osman
61d4a14b33 Renamed QHttpSubHandler to QSubHandler. 2015-07-01 21:41:23 -07:00
Nathan Osman
5595ae1156 Completely reorganized the source code layout. 2015-07-01 21:32:26 -07:00
Nathan Osman
748b5901cb Added headers to match those of Qt's own internal classes. 2015-07-01 15:49:11 -07:00
Nathan Osman
b73f7fcd5a Another attempt to fix the issue with the test suite on Windows. 2015-07-01 15:21:00 -07:00