Commit Graph

394 Commits

Author SHA1 Message Date
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
Nathan Osman
35c3ed9add Fixed error in test suite when run on Windows. 2015-07-01 15:16:33 -07:00
Nathan Osman
3ce83a8092 Completed initial implementation of QHttpServer. 2015-07-01 14:55:48 -07:00
Nathan Osman
8bfb405340 Began implementing QHttpServer. 2015-06-30 23:43:47 -07:00
Nathan Osman
db1bb4563a Added more detailed documentation to QObjectHandler. 2015-06-30 00:07:08 -07:00
Nathan Osman
4d9863aab8 Finished initial (rough) implementation of QObjectHandler and simple tests. 2015-06-29 23:43:19 -07:00
Nathan Osman
9ae14199a7 Removed QIODeviceCounter class. 2015-06-26 23:13:38 -07:00
Nathan Osman
68a02aa842 Fixed MSVC++ compiler error. 2015-06-24 22:53:54 -07:00
Nathan Osman
0a5973cae2 Added basic tests for QObjectHandler. 2015-06-24 22:36:44 -07:00
Nathan Osman
dbfb53dbbe Began implementing QObjectHandler. 2015-06-24 22:35:13 -07:00
Nathan Osman
01f8465d94 Fixed issue with symlinks in QFilesystemHandler. 2015-06-23 20:31:16 -07:00
Nathan Osman
1229676e19 Updated tests for QFilesystemHandler. 2015-06-23 20:17:23 -07:00
Nathan Osman
43c33e6e03 Switched to using aboutToClose() signal instead of disconnected() signal in QHttpSocket. 2015-06-23 19:00:31 -07:00
Nathan Osman
5fc8234ab8 Minor adjustments. 2015-06-23 18:55:36 -07:00
Nathan Osman
4e2d5d1018 Minor fixes to the QHttpSocket tests. 2015-06-23 18:42:20 -07:00
Nathan Osman
9f4f152219 Corrected condition in if clause for reading data from a QHttpSocket. 2015-06-23 17:39:54 -07:00
Nathan Osman
b73c45822a Added test for QHttpSocket signals. 2015-06-23 00:17:19 -07:00
Nathan Osman
ee0c05a8f1 Fixed a couple of bugs in QHttpSocket relating to reading data. 2015-06-23 00:16:40 -07:00