Commit Graph
4002 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 079dfd2cb8 MHD_get_timeout(): improved doxy 2021-10-31 18:21:33 +03:00
Evgeny Grin (Karlson2k) d5993f6c1f MHD_queue_response(): restored behavior with wrong parameters
Do not crash with NULL connection pointer (as before).
2021-10-31 17:50:48 +03:00
Evgeny Grin (Karlson2k) 62ac46dec6 daemon.c: fixed code style 2021-10-31 17:39:00 +03:00
Evgeny Grin (Karlson2k) 0187a69d4a Unified timeout parameter processing
Fixed processing of MHD_OPTION_CONNECTION_TIMEOUT option.
2021-10-31 17:38:41 +03:00
Evgeny Grin (Karlson2k) e1d1558570 MHD_set_connection_option(): improved readability
Fixed error reporting
2021-10-31 17:21:51 +03:00
Evgeny Grin (Karlson2k) ed503f0b24 connection.c: fixed code style 2021-10-31 17:14:41 +03:00
Evgeny Grin (Karlson2k) 291a148080 MHD_get_connection_info(): fixed return value
Fixed return value for MHD_CONNECTION_INFO_CONNECTION_TIMEOUT.
2021-10-31 17:14:19 +03:00
Evgeny Grin (Karlson2k) 22a04edf90 websockets interface: added "experimental" warning 2021-10-31 16:34:49 +03:00
Evgeny Grin (Karlson2k) f44e4bf896 websockets: fixed code style 2021-10-31 16:34:49 +03:00
Evgeny Grin (Karlson2k) 39568d84a0 uncrustify.cfg: updated 2021-10-31 16:34:49 +03:00
David Gausmann ddad59c1e3 websocket update
- added API documentation to libmicrohttpd.texi
- added websocket tutorial chapter to libmicrohttpd-tutorial and an much easier example for the tutorial
- added additional helper functions to ease the HTTP websocket handshake
- the code can now be compiled on Linux without errors
- changed sha1.c and sha1.h to the files provided by Evgeny (I replaced those files in src/microhttpd_ws/ with the files from src/microhttpd/ - maybe there is a smarter way...?)
- removed dependency for "htons" and "htonl" (these functions are now implemented in MHD_websocket.c; no need for OS-dependent files anymore)
- added an additional test script for testing of the library with any webbrowser (for manual practice test)
- several bugfixes
- parameters renamed
- special things clarified (fragmentation, RNG for client mode)

The new version of the API is at some points incompatible with the old version, but since it was in an experimental phase and it didn't compile on Linux, I guess this shouldn't bother anyone.
From my point of view, I am now finished with the library and it could go out of experimental.
2021-10-31 16:02:31 +03:00
Evgeny Grin (Karlson2k) ffbb000f89 Distinguish "early response" from "error response" 2021-10-31 15:40:19 +03:00
Evgeny Grin (Karlson2k) da4023db73 Bump MHD_VERSION 2021-10-30 20:20:48 +03:00
Evgeny Grin (Karlson2k) 645b014003 build_header_response(): added assert 2021-10-30 20:11:23 +03:00
Evgeny Grin (Karlson2k) 057ecebe59 connection.c: improved comments 2021-10-30 20:11:23 +03:00
Evgeny Grin (Karlson2k) 4b408a7608 setup_reply_properties(): improved comments 2021-10-30 20:11:22 +03:00
Evgeny Grin (Karlson2k) db643107ff connection_maximize_write_buffer(): fixed comment 2021-10-30 20:11:22 +03:00
Evgeny Grin (Karlson2k) 6468c23388 get_date_str(): additional check 2021-10-30 20:11:22 +03:00
Evgeny Grin (Karlson2k) 4fe217e364 keepalive_possible(): added TODOs 2021-10-30 20:11:22 +03:00
Evgeny Grin (Karlson2k) a89cb31ffb src/microhttpd/Makefile.am: removed empty lines 2021-10-30 17:31:31 +03:00
Evgeny Grin (Karlson2k) 38a571a908 Improved doxy for MHD_add_response_header() 2021-10-30 17:31:30 +03:00
Evgeny Grin (Karlson2k) 198551d295 microhttpd.h: MHD_ResponseFlags comments
Improved doxy comments MHD_ResponseFlags values
2021-10-30 17:31:30 +03:00
Evgeny Grin (Karlson2k) 104fc2633b microhttpd.h: fixed typo in doxy 2021-10-30 17:31:30 +03:00
Evgeny Grin (Karlson2k) 50b44dcf9e Updated HTTP headers names 2021-10-30 16:49:46 +03:00
Evgeny Grin (Karlson2k) aed886a261 Updated HTTP methods 2021-10-30 16:49:46 +03:00
Evgeny Grin (Karlson2k) 8c644fc1f4 Updated HTTP statuses 2021-10-30 16:49:45 +03:00
Evgeny Grin (Karlson2k) 22300a5257 microhttpd.h: doxy clarifications
"external select" -> "external sockets polling" and related
clarifications
2021-10-29 11:34:28 +03:00
Evgeny Grin (Karlson2k) b5fd82df3f microhttpd.h: cosmetics 2021-10-29 10:19:35 +03:00
Evgeny Grin (Karlson2k) 2e39c6b9de Removed redundant macro 2021-10-29 10:12:08 +03:00
Evgeny Grin (Karlson2k) 8b0b7ea28a configure: improved reporting which detecting available sanitizers 2021-10-28 12:32:32 +03:00
Evgeny Grin (Karlson2k) c2c728bc21 Added new W32 project files to the tarball 2021-10-27 21:33:36 +03:00
Evgeny Grin (Karlson2k) af75c70b42 Further improved PAGESIZE macro detection 2021-10-27 21:24:33 +03:00
Evgeny Grin (Karlson2k) 60cdf5f9e6 chunked responses: alway unlock response if closing the connection 2021-10-26 13:16:59 +03:00
Evgeny Grin (Karlson2k) 8a9bb841b8 Chunked responses: do not provide extra space for the response if size is known 2021-10-26 13:09:12 +03:00
Evgeny Grin (Karlson2k) 86b478e347 internal.h: clarified doxy 2021-10-26 13:07:24 +03:00
Evgeny Grin (Karlson2k) 54e679e5a7 connection.c: fixed harmless compiler warning 2021-10-26 10:42:50 +03:00
Evgeny Grin (Karlson2k) a1cc6eeea3 src/microhttpd/Makefile: cosmetics 2021-10-26 10:10:55 +03:00
Evgeny Grin (Karlson2k) 740deea3a8 W32 VS projects: use C17 if available 2021-10-25 19:24:51 +03:00
Evgeny Grin (Karlson2k) 6ef0c39eb7 W32: added VS project files for the latest installed toolset 2021-10-25 18:39:57 +03:00
Evgeny Grin (Karlson2k) cc0d92b9b2 W32: added VS2022 project files 2021-10-25 18:37:47 +03:00
Evgeny Grin (Karlson2k) b6a6f46c94 Fixed builds with MSVS 2021-10-25 16:57:57 +03:00
Evgeny Grin (Karlson2k) 75f339b076 tsearch.c: fixed missing include after f66a23d271 2021-10-25 16:57:56 +03:00
Evgeny Grin (Karlson2k) 481c63baad mhd_mono_clock: do not use MinGW clock wrappers on W32
System native clocks are always available on W32
2021-10-25 16:57:56 +03:00
Evgeny Grin (Karlson2k) f971d78f31 configure: removed unused HAVE_DECL_SOCK_NONBLOCK macro from MHD_config.h 2021-10-25 15:16:22 +03:00
Evgeny Grin (Karlson2k) bf024f2369 connection.c: fixed compiler warning 2021-10-25 15:00:21 +03:00
Evgeny Grin (Karlson2k) 03a73cf1a6 Removed unneeded cast of MHD_CONTENT_READER_END_* values 2021-10-25 14:59:52 +03:00
Evgeny Grin (Karlson2k) a2798b7c7d Chunked response: close connection if application returns more data than requested 2021-10-25 14:52:39 +03:00
Evgeny Grin (Karlson2k) 4e74523707 mhd_str: fixed typos in doxy comments 2021-10-25 14:07:53 +03:00
Evgeny Grin (Karlson2k) 9cb16af3d3 connection.c: fixed copy-paste error in comment 2021-10-24 14:43:35 +03:00
Evgeny Grin (Karlson2k) 276f601ffc Fixed: include "MHD_config.h" before other headers to set correct macros 2021-10-24 11:39:33 +03:00