1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00
Commit Graph

40 Commits

Author SHA1 Message Date
bel
92c91a67cc Auto format code after merge 2016-05-22 21:34:59 +02:00
Philipp Hasper
b112ba03b6 Automatically initialize mg_callbacks to NULL in constructor
Forgetting the memset when using the constructor previously lead to
invalid pointers.
2016-05-19 17:00:32 +02:00
bel
27a56bbe3e Add a note not to create a CivetServer instance with a static constructor in a Windows DLL
See #264
2016-02-29 21:18:53 +01:00
Philipp Hasper
36ef459a78 HEAD request handler for C++ interface 2016-02-11 08:05:29 +01:00
Neil Jensen
eb79a551d8 Make CivetAuthHandler::authorize function pure virtual 2016-01-11 10:32:18 -06:00
Neil Jensen
ed9ae22a65 Change authorization handlers to a separate type 2016-01-11 10:09:42 -06:00
Neil Jensen
6d5236d027 Add custom authorization handler 2016-01-08 12:35:58 -06:00
Neil Jensen
76b1fbd5cf Add PATCH handlers to the CivetServer 2016-01-05 14:43:52 -06:00
bel
04db49f20b Autoformat after merge #234 2015-11-28 23:36:37 +01:00
brett
c07b562d2d allow CivetServer constructor to accept options as std::vector<std::string>
https://github.com/civetweb/civetweb/issues/233
2015-11-28 13:24:42 -08:00
bel
b3064181ae Auto format after merge 2015-11-09 23:11:48 +01:00
Philipp Hasper
a9c11e10be Adding removeWebSocketHandler 2015-11-05 11:26:33 +01:00
bel
86723f1315 Add CivetWebSocketHandler to the C++ API
Patch from Nick Bulleid
(https://groups.google.com/forum/#!topic/civetweb/-iqfDnVMw2s)
2015-10-15 20:51:27 +02:00
bel
4de9090577 Apply revised clang-format (#207) to all actively maintained source files 2015-10-05 20:58:14 +02:00
bel
9a69a05905 Update source code format details 2015-09-06 21:03:52 +02:00
bel
36ce480cc3 clang_format src and include 2015-06-30 20:49:32 +02:00
bel
6ce8b4e92c Set autoformat options and autoformat all source files 2015-05-17 01:30:21 +02:00
bel
53a18aecf1 Autoformat all source files using clang-format 2015-05-17 00:48:11 +02:00
hansipie
020b9fbe93 Symbols export for the C++ Interface 2015-04-29 17:18:44 +02:00
bel
d264808e52 Clean usage of const/not const mg_context* and mg_connection* handles in the API.
The API had an inconsistant usage of `const mg_connection *` and `mg_connection *`,
that may cause warnings (e.g., #109). Now all non-const `mg_connection *` is only
required to read/write the connection.
2015-04-29 00:13:25 +02:00
bel
0a1f99c6bb Remove misleading comment in CivetServer.h
See issue #92
2015-04-23 21:48:22 +02:00
cbishop
b97f12bf42 Added stdexcept include for use of runtime_error exception 2015-04-10 09:53:52 +01:00
Mark Lakata
82a7ed8b53 Added exception if CivetServer constructor fails. Added getListeningPorts() method. 2015-03-12 14:38:27 -07:00
Richard Screene
fb4e0768d0 Add OPTIONS method to C++ server class 2014-11-04 10:59:22 +00:00
bel
fc70af612a Improve description of CivetServer::getParam(connection, ...) 2014-08-15 23:00:02 +02:00
bel
724753a7da Fix C++ build errors in Linux 2014-06-24 21:44:21 +02:00
bel
5675cfe6c2 Add comments for the C++ wrapper 2014-06-20 23:32:17 +02:00
bel
db1e1eb028 C++ Wrapper: Store post data per connection instead of per server
Fix #2 as proposed on June 16 2014 - see:
See https://groups.google.com/forum/#!topic/civetweb/ri0mNRJ_5-4
2014-06-16 22:36:42 +02:00
bel
9446bf0f4a Null-terminate string in CivetServer::getParam
issue reported by Menno Lodder, see see Mailing-List
https://groups.google.com/forum/#!topic/civetweb/ri0mNRJ_5-4
see also issue #11
2014-06-14 06:53:36 +02:00
bel
c9f266e3a7 Issue #11: Method to get POST request parameters via C++ interface 2014-03-22 23:02:07 +01:00
Thomas Davis
b2b62edd57 Fixed Lua compile error with recent change to conn2() 2013-10-07 14:22:23 -04:00
Thomas Davis
7e72461870 Updated comments 2013-10-07 14:22:23 -04:00
Thomas Davis
b745f22107 Normallized coding style in a predictable way.
Uses astyle program which is freely avaiable on all platforms.
2013-10-07 14:22:22 -04:00
Thomas Davis
af000e03c7 Added new URI to handler mapping for C code. 2013-10-07 14:22:21 -04:00
Thomas Davis
acbe6db15f Added URLEncode methods 2013-10-07 14:22:20 -04:00
Thomas Davis
466f3982fe Added urlDecode urlDecode CivetServer methods 2013-10-07 14:22:20 -04:00
HariKamath
f16f053e11 Wrapper funtion for mg_het_header() 2013-10-07 14:22:20 -04:00
HariKamath
59e17e4401 Changes suggested by Thomas, plus, some minor spelling istakes 2013-10-07 14:22:20 -04:00
HariKamath
021011b273 Cpp implementation for mg_get_cookie().
The user can pass standard strings for cookie name get back the corresponding value.
The method returns the size of the cookie string read.
2013-10-07 14:22:19 -04:00
Thomas Davis
b2aee90d14 Regorganized directories to make them more intuitive 2013-10-07 14:22:16 -04:00