Commit Graph

221 Commits

Author SHA1 Message Date
Nathan Osman
a77badb827 Fix failing test for QObjectHandler. 2017-07-07 22:35:25 -07:00
Nathan Osman
61d219721e Move everything into the QHttpEngine namespace. 2017-07-07 21:56:09 -07:00
Nathan Osman
6fea4fbd61 Update build scripts. 2017-07-07 21:22:19 -07:00
Nathan Osman
4866f85380 Move include and src files. 2017-07-07 21:02:01 -07:00
Nathan Osman
396168a0dd Update comment block and #include lines. 2017-07-07 20:57:57 -07:00
Nathan Osman
fd7e7e9603 Rename classes to match filenames. 2017-07-07 20:44:43 -07:00
Nathan Osman
2fdf8fac71 Rename source files. 2017-07-07 18:49:40 -07:00
Nathan Osman
e68c0b0f11 Rename most classes to remove the 'Q' prefix. 2017-07-07 18:29:50 -07:00
Nathan Osman
0197444a83 Remove all uppercase headers. 2017-07-07 16:53:03 -07:00
Nathan Osman
8e13f1644a Fix compilation on earlier versions of MSVC++ (fixes #17). 2017-04-03 11:16:55 -07:00
Nathan Osman
88169f590e Minor adjustment. 2017-03-25 17:48:35 -07:00
Nathan Osman
a9d1891f9a Fix QLocalFile file permission error on Windows (fixes nitroshare/nitroshare-desktop#107). 2017-02-11 12:54:02 -08:00
Nathan Osman
1972d82809 Fix issue with upgraded WebSocket connections. 2016-12-13 22:21:03 -08:00
Nathan Osman
bead7a68e7 Fix incorrect HTTP version. 2016-12-13 21:31:01 -08:00
Nathan Osman
c48f20c264 Fixed logic error preventing 502 error. 2016-12-13 20:55:29 -08:00
Nathan Osman
3c662ab005 Move socket proxy code to separate class. 2016-12-13 19:44:42 -08:00
Nathan Osman
58c5dd786c Add X-Forwarded-For and X-Real-IP headers to QProxyHandler. 2016-12-13 12:17:20 -08:00
Nathan Osman
bde806b289 Add peerAddress() method to QHttpSocket. 2016-12-13 12:14:48 -08:00
Nathan Osman
48967c398b Add test for QProxyHandler. 2016-12-13 00:26:42 -08:00
Nathan Osman
ab5282c976 Add initial implementation of QProxyHandler. 2016-12-12 22:50:57 -08:00
Ilan Pegoraro
927d6436d1 Fixes issue #12, closes socket when done
Closing the socket after calling the invokeSlot and not in QHttpServer
after process, because the invocation can be deferred if more data
needs to be read from the socket, so closing the socket after calling
invokeSlot guarantees that the socket is close when the slot finishes.
2016-11-03 12:23:24 +00:00
Nathan Osman
8ca3666112 Add missing call to setSocketDescriptor(). 2016-10-28 14:52:46 -07:00
Nathan Osman
49aa771b63 Add SSL capabilities to QHttpServer. 2016-10-28 13:44:16 -07:00
Ilan Pegoraro
79da42f0b9 Add more http status code 2016-10-28 16:51:37 +01:00
Nathan Osman
cf3932529a Add QLocalAuth class. 2016-10-15 20:50:11 -07:00
Nathan Osman
482a67733f Finish moving JSON code into QHttpSocket. 2016-10-14 16:11:29 -07:00
Nathan Osman
f059e9bc66 Move JSON output functionality to socket. 2016-10-14 14:14:06 -07:00
Nathan Osman
4dd17ad4ea Fix bug with include paths on MSVC. 2016-10-14 11:02:19 -07:00
Nathan Osman
4cfbec7c6c Rename QHttpSocket::QQueryStringMap and QHttpSocket::QHttpHeaderMap. 2016-10-13 17:34:46 -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
1604bcf279 Fix runtime bug caused by typo. 2016-10-11 22:33:00 -07:00
Nathan Osman
6edf9f4c89 Add HTTP basic authentication. 2016-10-11 21:29:06 -07:00
Nathan Osman
6df88ad4aa Implement middleware. 2016-10-11 20:23:21 -07:00
Nathan Osman
e35fdbde78 Fix comparison issue with QIByteArray and improve performance by inlining all methods. 2016-10-11 13:07:09 -07:00
Nathan Osman
8304e03c6d Minor formatting and documentation updates. 2016-10-10 13:49:34 -07:00
Nathan Osman
17e8b4e8aa Merge pull request #10 from Kuraisu/range-support 2016-10-10 13:21:14 -07:00
Aleksey Yermakov
7e7ec8c7af Add partial content support to QFilesystemHandler. 2016-10-10 18:00:17 +03:00
Aleksey Yermakov
f7290e0cb9 Added QHttpRange class and tests.
This class will be used for support of partial content requests.
2016-10-09 22:43:29 +03:00
Nathan Osman
7ac8fa1c88 Merge branch 'new-features' 2016-10-08 13:00:00 -07:00
Nathan Osman
7c3a13e89d Bump version. 2016-10-08 12:48:24 -07:00
Nathan Osman
27cc231218 Fix typo causing failing test. 2016-10-08 12:32:17 -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
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
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
feaab366ef Fix SEGFAULT caused by parameter going out of scope. 2016-10-04 17:02:35 -07:00