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

76 Commits

Author SHA1 Message Date
bel
b23c0e653a Update repository link in header: bel2125/civetweb --> civetweb/civetweb 2015-08-11 23:10:47 +02:00
bel
721f694c24 Add API function to check available features 2015-08-09 21:36:07 +02:00
bel
0e5206006c Store return value of callbacks as status code for the access log
See #178
2015-07-28 22:07:18 +02:00
bel
12485f551f Update version number 2015-07-06 21:14:23 +02:00
bel
36ce480cc3 clang_format src and include 2015-06-30 20:49:32 +02:00
Matt Clarkson
a68e70f3c8 Use the visibility attribute for newer GCC versions
In newer versions of GCC the exporting of symbols can be controlled with
an attribute if -fvisibility=hidden is used. This patch allows the
CIVETWEB_API macro to work with this flag.
2015-05-28 14:32:07 +01: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
bel
121ae6c7f6 Handler for websocket connection (Step 6/7)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 22:09:09 +02:00
bel
436bc39555 Handler for websocket connection (Step 2/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-19 00:43:11 +02:00
bel
259415c392 Nobody is supposed to define CIVETWEB_VERSION outside civetweb.h 2015-04-18 19:16:58 +02:00
bel
0016b36204 Handler for websocket connection (Step 1/?)
Add an interface to register handler for websocket connections.
See enhancement #30 and question #101
2015-04-18 18:14:20 +02:00
cbishop
b97f12bf42 Added stdexcept include for use of runtime_error exception 2015-04-10 09:53:52 +01:00
bel
6a96b4b6a2 Small enhancements in the header comments 2015-04-09 22:04:49 +02:00
Mark Lakata
82a7ed8b53 Added exception if CivetServer constructor fails. Added getListeningPorts() method. 2015-03-12 14:38:27 -07:00
Yehuda Sadeh
bab2a3f627 add log_access() callback
log_message() is used for critical messages, log_access() used for
access logging.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-12 16:12:25 -08:00
bel
c70d1ecad8 Update copyright note to 2015 2015-02-03 23:18:59 +01:00
bel
6ccd32a060 Update documentation 2014-12-27 20:20:48 +01:00
bel
f9a02ac8aa Specify in detail and document return values of callback functions 2014-12-24 00:17:18 +01:00
bel
423c3233c0 Add response timeout function (issue #48)
Add the code by rscreene contributed by rscreene to civetweb.
This cannot be done with automatic merge of the pull request, since the repositorie seem to be too different. So it is reimplemented at the current main line, with some adjustments.
2014-11-20 22:10:13 +01:00
bel2125
7243d82f11 Merge pull request #46 from NetDevLtd/master
Add OPTIONS method to C++ server class
2014-11-04 19:41:13 +01:00
Richard Screene
fb4e0768d0 Add OPTIONS method to C++ server class 2014-11-04 10:59:22 +00:00
bel
9662d4c31b Add a wrapper for a new API function 2014-11-02 23:54:42 +01:00
bel
6a09b72814 Rename API function introduced by last merge, and document it 2014-11-02 23:10:02 +01:00
bel
0350373c76 Remove duplicate function declaration introduced by last merge 2014-11-02 21:53:34 +01:00
Richard Screene
50479bb425 Allow client to send POST request 2014-10-15 12:45:33 +01:00
bel
32f3e195ba fix warning in civetweb.c 2014-09-20 22:17:19 +02:00
bel
154b80bb69 Make client address available in mg_request_info also for IPv6 (see also issue #33) 2014-09-14 11:04:42 +02:00
bel
5e52950838 Add close callback for websocket clients 2014-08-31 01:34:04 +02:00
bel
eac72465ad Allow multiple websocket clients with different callbacks and an additional user supplied argument 2014-08-30 23:31:21 +02:00
Jordan
5d465aadad Fixed the copyright, changed mg_client_websocket_connect to mg_websocket_client_connect 2014-08-26 15:22:22 -04:00
Jordan
a4eca7c492 Added a unit test for websocket_client functionality, other small fixes 2014-08-21 14:53:47 -04:00
Jordan
5e7362ea5a Merge remote-tracking branch 'upstream/master' 2014-08-21 09:12:10 -04:00
Jordan
9b8cda8d95 Initial version of websocket client. SSL tested working. websocket_client example included. 2014-08-21 08:53:00 -04:00
bel2125
59833c4842 Merge pull request #34 from jawi/master
Make content length available in request_info
2014-08-16 19:58:36 +02:00
bel
fc70af612a Improve description of CivetServer::getParam(connection, ...) 2014-08-15 23:00:02 +02:00
Jan Willem Janssen
d1437f9f5d Make content length available in request_info:
- given that the content-length header is already parsed, lets make
  it also available in the request_info struct to allow easy access;
- added simple unit test to verify the behavior of the new field.
2014-08-13 15:07:01 +02:00
bel
5ee511bef3 Add a function to access the user data in cases the context is known but not the connection 2014-08-11 00:02:04 +02:00
bel
64c97d56e4 Add callbacks for creation and deletion of the server context 2014-08-10 23:46:16 +02:00
bel
ec8c557589 Update version number 2014-07-08 21:57:03 +02:00
Thomas Davis
1461951d13 Compile fixes for OSX
Also fixed github URL's to point to correct project.
2014-06-26 17:38:05 -04:00
bel
724753a7da Fix C++ build errors in Linux 2014-06-24 21:44:21 +02:00
bel
811f4d29f0 Export global mutex 2014-06-21 22:34:57 +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