Commit Graph

16 Commits

Author SHA1 Message Date
Nathan Osman
f059e9bc66 Move JSON output functionality to socket. 2016-10-14 14:14:06 -07:00
Nathan Osman
5968739f03 Add JSON utility functions to QObjectHandler. 2016-10-13 15:33:55 -07:00
Nathan Osman
c1fc8a115d Remove all JSON marshalling code from QObjectHandler. 2016-10-13 00:38:39 -07:00
Nathan Osman
bf4ca27cc7 Update tests for QObjecHandler. 2016-10-08 01:47:30 -07:00
Nathan Osman
b901757731 Completely rewrite QObjectHandler to be more flexible. 2016-10-07 23:02:16 -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
b39b18be6c Add ability to modify status code. 2016-10-04 19:51:48 -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
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
a60cfc8ab4 Moved all of the header files to a separate directory. 2015-07-17 12:42:25 -07:00
Nathan Osman
ad8989bf07 Improved error handling in QObjectHandler. 2015-07-08 17:27:05 -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
6a77b01f27 Removed bool return value from QHttpHandler::process(). 2015-07-03 16:06:02 -07:00
Nathan Osman
ad9942ec46 Updated header comment. 2015-07-02 00:28:38 -07:00
Nathan Osman
5595ae1156 Completely reorganized the source code layout. 2015-07-01 21:32:26 -07:00