Commit Graph

394 Commits

Author SHA1 Message Date
Nathan Osman
1bea4efab7 Merge pull request #9 from impegoraro/hotfix-httphandler
Close the socket on default process method
2016-10-07 23:01:10 -07:00
Ilan Pegoraro
00fab6b5e1 Close the socket on default process method
Just like in QObjectHandler after writing to the socket, the socket
should be close.
2016-10-07 17:58:54 +01:00
Nathan Osman
d20c1d33a9 Fix incorrect parameter for QHttpParser test. 2016-10-06 22:58:13 -07:00
Nathan Osman
337d021936 Fix path issue with CMake. 2016-10-06 22:47:51 -07:00
Nathan Osman
9dd1072bc3 Update .travis.yml for Qt 5.7. 2016-10-06 22:21:11 -07:00
Nathan Osman
7c460edb57 Completely reorganize the library, moving up to Qt 5.4, using C++11 where reasonably possible, and reorganizing the includes. 2016-10-06 21:50:45 -07:00
Nathan Osman
7930ef4a50 Fix inadvertently inverted condition during status line parsing. 2016-10-06 10:58:49 -07:00
Nathan Osman
c6cb5d274b Switch to using QMultiMap for headers and added new typedef for query string. 2016-10-05 00:34:14 -07:00
Nathan Osman
b39b18be6c Add ability to modify status code. 2016-10-04 19:51:48 -07:00
Nathan Osman
287edf9825 Update documentation. 2016-10-04 17:27:53 -07:00
Nathan Osman
61bfd8c70a Update chat example to use new slot format. 2016-10-04 17:23:40 -07:00
Nathan Osman
feaab366ef Fix SEGFAULT caused by parameter going out of scope. 2016-10-04 17:02:35 -07:00
Nathan Osman
7edb26c433 Add ability to specify method for slot handlers. 2016-10-04 16:48:57 -07:00
Nathan Osman
391dea5ddb Merge commit 'f1ab4f4' into http-methods 2016-10-04 11:27:52 -07:00
Nathan Osman
dafff09b5d Fixed OS definition. 2016-07-11 10:41:17 -07:00
Nathan Osman
7ea1f703db Fixed access control issue on Windows. 2016-06-19 04:39:14 -07:00
Nathan Osman
e83dd36bfd Switched qInfo to qDebug. 2016-06-19 04:24:52 -07:00
Nathan Osman
7cea9352f3 Added CPack information to enable quick TGZ generation. 2016-06-18 16:24:59 -07:00
Nathan Osman
56c37275cd Merge branch 'master' of github.com:nitroshare/qhttpengine 2016-06-13 19:11:34 -07:00
Nathan Osman
27ed1bbe4a Updated CI badge in README. 2016-05-30 10:11:33 -07:00
Nathan Osman
30099e78ea Added language specification and builds for both GCC and Clang. 2016-05-30 10:08:17 -07:00
Nathan Osman
3cf92f2373 Added .travis.yml. 2016-05-30 10:03:03 -07:00
Nathan Osman
7554193a16 Added client portion of auth sample. 2016-05-28 12:17:07 -07:00
Nathan Osman
dd748698a3 Fixed issue with chmod() on Windows. 2016-05-28 07:31:28 -07:00
Ilan Pegoraro
f1ab4f40b9 Add support for GET methods.
Add support for HTTP GET method.
Mapping between the http GET and POST method is done by prefixing the
the keyword to the correct slot. For example, given a GET request /example,
the slot should be named get_example, so that proper routing can be
made.

Also, the GET slot receives as argument the query string as a
QVariantMap.
2016-01-07 11:20:35 +00:00
Nathan Osman
9bcb80bf1b Switched to copy_if_different flag. 0.1.0 2015-07-18 23:57:30 -07:00
Nathan Osman
9d213f8f58 Fixed typo. 2015-07-18 23:45:52 -07:00
Nathan Osman
3bd3752530 Attempted to fix issue with running tests on Windows. 2015-07-18 23:36:25 -07:00
Nathan Osman
3f51d915ad Ensured that unit tests run in the directory containing the QHttpEngine library. 2015-07-18 17:14:22 -07:00
Nathan Osman
5eb09aa180 Disabled 'files' tab in documentation. 2015-07-18 16:44:15 -07:00
Nathan Osman
150f6b257f Minor adjustments to a couple of tests. 2015-07-18 16:43:37 -07:00
Nathan Osman
c8e6812b5d Renamed a parameter in QHttpHandler::addRedirect(). 2015-07-18 16:42:53 -07:00
Nathan Osman
04434b2799 Added 'friend class [...]' declaration to each of the QObject classes. 2015-07-18 16:41:09 -07:00
Nathan Osman
d653c686a3 Updated documentation for QHttpServer and QHttpSocket. 2015-07-18 16:27:52 -07:00
Nathan Osman
6597b96ca9 Updated the documentation for QHttpHandler. 2015-07-18 15:54:44 -07:00
Nathan Osman
1aca9bc1e1 QIODeviceHandler now stops operation if either the src or dest is destroyed. 2015-07-18 13:52:07 -07:00
Nathan Osman
c0a7735bad Minor updates to QFilesystemHandler. 2015-07-18 13:51:36 -07:00
Nathan Osman
95cd8cd26f Fixed missing values for EXAMPLES_INSTALL_DIR build option. 2015-07-18 13:40:11 -07:00
Nathan Osman
a36a512119 Updated README to reflect new build options. 2015-07-18 13:39:29 -07:00
Nathan Osman
1dd0cb75c2 Fixed potential security issue with QFilesystemHandler and added ability to use symbolic links in paths (fixes #5). 2015-07-18 13:38:50 -07:00
Nathan Osman
b2f8e54575 Added an option for building a static library. 2015-07-18 12:42:36 -07:00
Nathan Osman
6c40336452 Generate pkgconfig file even on Windows (for cross-compilers). 2015-07-18 12:39:06 -07:00
Nathan Osman
8043aa8a88 Corrected path to header files in the documentation. 2015-07-17 14:09:12 -07:00
Nathan Osman
9195376c37 Converted project name to uppercase. 2015-07-17 13:27:09 -07:00
Nathan Osman
0c2677f0dc Corrected name of QHttpEngineConfigVersion.cmake file. 2015-07-17 12:47:12 -07:00
Nathan Osman
a60cfc8ab4 Moved all of the header files to a separate directory. 2015-07-17 12:42:25 -07:00
Nathan Osman
7a7a52a8af Added pkgconfig file. 2015-07-17 10:43:10 -07:00
Nathan Osman
df4b00fccf Improvements to the CMake configuration files. 2015-07-16 23:53:38 -07:00
Nathan Osman
fe19e6f985 Added option for include and CMake configuration directories. 2015-07-16 23:52:43 -07:00
Nathan Osman
054fe75902 Example binaries are now installed to their source directory. 2015-07-16 23:41:45 -07:00