Sergey Lyubka
31178f4d48
Typo fixed in the comment
2014-12-15 12:03:50 +00:00
Sergey Lyubka
c3db7b141b
Removed $Date$ from header
2014-11-28 12:21:36 +00:00
Sergey Lyubka
632b3a38a9
5.5 -> 5.6
2014-10-28 11:43:51 +00:00
Sergey Lyubka
c8ba652f1c
5.4 -> 5.5
2014-10-28 11:20:44 +00:00
Sergey Lyubka
f059e41cac
Removed mg_set_listening_socket() and mg_get_listening_socket(), added mg_copy_listeners()
2014-10-14 15:25:56 +01:00
Sergey Lyubka
4ca4c862a5
Updated net_skeleton, added extra_headers param to mg_send_file()
2014-10-09 09:26:45 +01:00
Sergey Lyubka
6083b9c5c5
Updated to the recent skeleton. SSL address format changed
2014-09-09 18:07:55 +01:00
m.milanovic@levi9.com
7806609773
Added mg_mmap and mg_munmap utility functions for memory mapping files
2014-09-04 15:05:42 +02:00
Sergey Lyubka
1388bb1db4
Fixed line endings
2014-09-01 21:02:16 +01:00
Sergey Lyubka
b50095fa61
Added $Date$ markers
2014-09-01 20:54:12 +01:00
Sergey Lyubka
bdb16c624c
Added MG_RECV event and mg_send_file_data() func
2014-08-21 04:09:06 +01:00
Sergey Lyubka
cc54195f59
Added mg_forward()
2014-07-31 20:04:59 +01:00
Sergey Lyubka
ca9603301e
removed trailing newline
2014-06-24 16:35:26 +01:00
Sergey Lyubka
70eb4c4bbc
exported mg_terminate_ssl
2014-06-18 10:59:29 +01:00
Sergey Lyubka
870ca615de
Added mg_next()
2014-06-09 17:24:51 +01:00
Sergey Lyubka
64b51699f8
Added MG_WS_CONNECT
2014-06-09 16:32:56 +01:00
Sergey Lyubka
c4f172a120
Documented mg_send_file()
2014-06-03 18:45:37 +01:00
Sergey Lyubka
f51ca8d5d1
Added mg_send_file(). Changed sending function to return send_iobuf length.
2014-06-03 18:02:55 +01:00
Sergey Lyubka
fb4e701545
Added mg_wakeup_server_ex() for pushing data
2014-05-12 23:22:57 +01:00
Sergey Lyubka
1bb98e5e8e
Exported mg_websocket_printf(), mg_url_encode(). Added unit test for mg_url_encode()
2014-04-25 18:04:24 +01:00
Sergey Lyubka
464b895116
Added enum for websocket opcodes
2014-04-09 15:16:03 +01:00
Sergey Lyubka
05d7b7c8bc
Added MG_WS_HANDSHAKE
2014-04-09 11:55:36 +01:00
Sergey Lyubka
33c56b0edc
Init local_ip and local_port properly in mg_connection
2014-03-30 22:50:10 +01:00
Sergey Lyubka
5a04ab2c56
Added mg_template() function
2014-03-30 12:45:48 +01:00
Sergey Lyubka
4739de6c28
Removed DLL interface and Lua conditional
2014-03-30 12:34:32 +01:00
Sergey Lyubka
d4b14ca3c1
Better API documentation
2014-03-26 14:13:30 +00:00
Sergey Lyubka
94f63787bb
Restored void * parameter for iterate_over_connections()
2014-03-24 16:01:45 +00:00
Sergey Lyubka
ace8c1736c
Added mg_load_dll()
2014-03-20 15:01:05 +00:00
Sergey Lyubka
999c4ad26c
5.3 -> 5.4
2014-03-10 17:02:00 +00:00
Sergey Lyubka
18e28ef879
Added lua includes
2014-03-09 20:22:51 +00:00
Jurie Horneman
d5a78fb664
Fixed bug.
2014-03-09 21:12:34 +01:00
Jurie Horneman
1b3a1b74ac
Exposed Lua support functions.
2014-03-09 21:11:06 +01:00
Sergey Lyubka
976b5f37c1
Added Lua callback
2014-03-09 19:30:41 +00:00
Sergey Lyubka
b77532ea3f
Added mjpg example
2014-03-04 20:22:46 +00:00
Sergey Lyubka
279c06c64c
Cleaned up cruft from mongoose.h
2014-03-03 10:56:17 +00:00
Sergey Lyubka
e41df3cf9c
MG_REQ_BEGIN -> MG_REQUEST, killed MG_REQ_END, add MG_REPLY. Restored server test
2014-03-03 10:26:27 +00:00
Sergey Lyubka
0a3cb63c73
Added mg_wakeup_server()
2014-03-01 01:47:01 +00:00
Sergey Lyubka
2ac970fa16
Moving to event-based API, temporary breaking tests
2014-03-01 01:17:39 +00:00
Sergey Lyubka
8f7703c2a9
moved to net_skeleton
2014-02-19 16:34:51 +00:00
Andrea Guzzo
b22f7d3a49
added a new handler callback to be used when the http connection is being closed
...
so that in case of connections closed prematurely, the user can clear resources
eventually bound to the connection using the 'connection_param' member of the
mg_connection structure
2014-02-06 11:22:13 +01:00
Sergey Lyubka
a3a63f7e56
Using mg_connection::callback_param for mg_iterate_over_connection()
2014-02-06 10:00:20 +00:00
Sergey Lyubka
81b9876af8
5.2 -> 5.3
2014-02-01 16:53:09 +00:00
Sergey Lyubka
14526a2109
mg_add_uri_handler -> mg_set_request_handler()
2014-01-28 12:42:13 +00:00
Sergey Lyubka
170df7b676
local and remote port made unsigned short
2014-01-27 11:08:32 +00:00
Sergey Lyubka
8ae0400b0d
Added ability to set "0" as listening port. Exported local_ip and local_port to the client.
2014-01-25 13:50:57 +00:00
Sergey Lyubka
5d2ac4e0a6
Merge branch 'master' of ssh://github.com/valenok/mongoose
2014-01-24 20:50:21 +00:00
Sergey Lyubka
f977757a9d
Added mg_set_auth_handler()
2014-01-24 20:49:57 +00:00
Andrea Guzzo
956788d7de
changed mg_get_mime_type to expect the default type as argument
...
instead of using a configuration option
2014-01-24 15:56:21 +01:00
Andrea Guzzo
45f6612096
allow to define a default mime-type to use when lookup in the internal table fails
...
instead of always returning 'text/plain'
To allow setting a different default mime-type the mg_get_mime_type() api has been
extended to require an mg_server parameter.
Note that using a static global as default mime type wouldn't have allowed us to
control it via a configuration option because there is not global initialization phase
and configuration options are provided (and specific) to each server instance.
This means that different servers can be configured to use a different default mime-type
(which is also a desired behaviour in many scenarios) when lookup fails.
2014-01-24 14:45:19 +01:00
Sergey Lyubka
0377eea9c5
Added enum for callback return codes
2014-01-22 18:25:05 +00:00
Sergey Lyubka
976f286134
Made mg_connection::content_len int -> size_t, which is 64-bit on 64-bit systems
2014-01-20 20:57:21 +00:00
Sergey Lyubka
5825e3ea74
Adding use_ssl to mg_connect()
2014-01-20 08:55:03 +00:00
Sergey Lyubka
7a129c17ba
Added http client with unit tests
2014-01-19 16:32:43 +00:00
Sergey Lyubka
02f19fc05a
Using mg_handler_t for iterate_over_connections()
2014-01-17 11:45:57 +00:00
Sergey Lyubka
73ed83c5e3
Added mg_parse_multipart
2014-01-13 16:29:12 +00:00
Sergey Lyubka
a3663da90e
Exposed mg_send_digest_auth_request(). Exported conn->content to Lua
2014-01-13 10:50:26 +00:00
Sergey Lyubka
e38061970e
Exposed mg_authorize_digest()
2014-01-11 16:44:37 +00:00
Sergey Lyubka
7380c65265
5.1 -> 5.2
2014-01-10 22:37:26 +00:00
Sergey Lyubka
fa351959a0
5.0 -> 5.1
2014-01-09 14:08:50 +00:00
Sergey Lyubka
d0e2741832
Added new response creation interface
2014-01-04 11:31:55 +00:00
Sergey Lyubka
a0b599b308
Removed protection from mg_write(). Refactored mg_iterate_over_connections()
2014-01-04 00:51:07 +00:00
Sergey Lyubka
f5f6edcf5a
Added mg_printf() back
2013-12-26 10:12:18 +00:00
Sergey Lyubka
4708cce8bd
mg_poll_server() returns currect time. add mg_set_listening_socket() and mg_get_listening_socket()
2013-12-21 20:52:54 +00:00
Sergey Lyubka
f4c30b746e
Switched to async, non-blocking core
2013-12-09 14:18:49 +00:00
Sergey Lyubka
2f49e63d5b
Moved docstrings to API.md
2013-11-25 13:43:12 +00:00
Sergey Lyubka
762a68a0cf
Moved some docs to markdown
2013-10-30 23:02:15 +00:00
Sergey Lyubka
1da098671e
Moved docstrings to API.md
2013-10-19 14:07:46 -07:00
Sergey Lyubka
f852a4db0f
Moved docstrings to API.md
2013-10-19 13:14:16 -07:00
Sergey Lyubka
ecbf79135f
Refactored API, returned back to event-based handlers. Upload and Websocket API simplified
2013-09-28 11:00:54 +01:00
Sergey Lyubka
079c99c47f
Started to restore single callback function
2013-09-26 13:25:51 +01:00
Sergey Lyubka
98214ce1a4
Removed init_lua() and open_file() callbacks
2013-09-26 09:35:07 +01:00
Sergey Lyubka
b946f33189
Moved more docs to the web site
2013-09-24 11:24:10 +01:00
Sergey Lyubka
50f8e8891b
Removed references to usermanual.md
2013-09-18 09:44:00 +01:00
Sergey Lyubka
411a269991
valenok -> cesanta
2013-09-16 22:45:19 +01:00
Sergey Lyubka
73d2b395d1
Moved SIGCHLD handler out of mongoose.c. Embedded user must set SIGCHLD handler if CGI is used.
2013-09-07 19:41:40 +01:00
Sergey Lyubka
6d14ed3a18
thread_setup -> thread_start
2013-08-28 09:53:10 +01:00
Sergey Lyubka
00b289a0f4
Added thread_start() and thread_stop()
2013-08-26 12:22:38 +01:00
Sergey Lyubka
85209ac4fa
Reverted contributions by jmucchiello
2013-08-19 11:54:47 +01:00
Sergey Lyubka
218428662e
License change
2013-08-16 11:18:16 +01:00
Nigel Stewart
fa3e6ce271
gcc complains about _MSC_VER being an undefined macro.
2013-08-08 22:08:00 -05:00
Sergey Lyubka
4b163232e3
fixed docstring for mg_get_valid_option_names
2013-07-20 07:12:49 +01:00
Sergey Lyubka
036b213b2b
Added connection-specific conn_data pointer to struct mg_request_info
2013-07-18 17:31:16 +01:00
Sergey Lyubka
c68df310b8
Added mg_websocket_write(), per morgan3d pull request
2013-07-12 12:25:25 +01:00
Sergey Lyubka
b5b234fab2
Improved docstring for mg_read()
2013-05-19 08:00:12 +01:00
Sergey Lyubka
91fa767efb
Fix doc string for websocket_data()
2013-05-18 15:21:20 +01:00
Sergey Lyubka
cfbaf7f1ae
Expose mg_url_decode to the API
2013-05-08 11:36:38 +01:00
Sergey Lyubka
4120b9bcc0
mg_get_cookie() signature change
2013-04-11 12:49:41 -07:00
Sergey Lyubka
272644e39f
mg_md5 returns char *, not void
2013-03-27 01:31:12 -07:00
Sergey Lyubka
67cffc8db5
Documented struct mg_callbacks
2013-03-09 13:12:03 +00:00
Sergey Lyubka
72abaa043b
Documented struct mg_callbacks
2013-03-09 13:01:02 +00:00
Sergey Lyubka
8d1f6377c4
Changed websocket_data() handler API. Buffering and passing whole websocket message.
2013-03-08 16:03:23 +00:00
Sergey Lyubka
3892e0199e
Passing user_data to init_ssl()
2013-02-28 09:12:52 +00:00
Sergey Lyubka
26b3f227d9
Merge branch 'master' of ssh://github.com/valenok/mongoose
2013-02-12 21:04:42 +00:00
Sergey Lyubka
fcafaa73d6
Style fixes in the comments
2013-02-12 21:03:54 +00:00
Joe Mucchiello
2efc5d9fce
http_error callback
...
Allow user to display status code errors
2013-02-10 15:58:06 -05:00
Joe Mucchiello
1cb094e059
Revert "Add http_error callback"
...
This reverts commit 27fe9c8f01679a1a093f901860e5b2c95c9673c5.
2013-02-10 15:50:20 -05:00
Joe Mucchiello
27fe9c8f01
Add http_error callback
...
Allows user code to display its own error status responses or just log
the errors. Is called even in cases where begin_request is not called.
2013-02-10 15:02:37 -05:00
Sergey Lyubka
ee55d38b55
API CHANGE: using struct mg_callbacks
2013-02-01 16:48:30 +00:00
Sergey Lyubka
c132191cad
Prepare to change the API to use explicit callbacks
2013-01-31 18:29:22 +00:00
Sergey Lyubka
5105717f78
Added printf checkers for mg_download
2013-01-24 09:35:54 +00:00