Commit Graph
4924 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 0ae9a4c10b test_{tricky,toolarge}: minor improvement 2021-11-06 19:48:02 +03:00
Evgeny Grin (Karlson2k) 7999c2d7bf test_{tricky,toolarge}: fixed code style 2021-11-06 19:42:02 +03:00
Evgeny Grin (Karlson2k) f6c286d79a tests: fixed copy-paste error in report 2021-11-06 19:41:17 +03:00
Evgeny Grin (Karlson2k) 148faf72bf mhd_sockets.c: fixed code style 2021-11-06 15:09:21 +03:00
Evgeny Grin (Karlson2k) a507eb93ee W32 socket pair: set TCP_NODELAY
Set TCP_NODELAY on both ends of socket pair on W32 to disable
unwanted buffering
2021-11-06 15:08:35 +03:00
Evgeny Grin (Karlson2k) 2c86e6b25f mhd_sockets: cosmetics 2021-11-06 12:34:20 +03:00
Evgeny Grin (Karlson2k) bc1ea34149 mhd_sockets: added more network error codes 2021-11-06 12:34:20 +03:00
Evgeny Grin (Karlson2k) d60b990cc9 mhd_sockets: code style fixes 2021-11-06 12:34:19 +03:00
Evgeny Grin (Karlson2k) 7c5b14acec Doxy: finally clarified how to work with callbacks
Clarified doxy descriptions for the key callback AccessHandlerCallback,
MHD_queue_response(), and MHD_suspend_connection()
2021-11-04 16:15:47 +03:00
Evgeny Grin (Karlson2k) 61b997d944 MHD_uint32_to_strx(): rewritten for readability and minor optimization 2021-11-03 16:43:56 +03:00
Evgeny Grin (Karlson2k) ec2725b5d8 test_str_token{,s}_remove: fixed comments 2021-11-03 14:54:58 +03:00
Evgeny Grin (Karlson2k) 10cb9ff0e7 MHD_str_remove_tokens_caseless_(): improved comments 2021-11-03 14:53:57 +03:00
Evgeny Grin (Karlson2k) fa4a35d9d5 MHD_str_remove_token_caseless_(): clarified comments 2021-11-02 21:29:57 +03:00
Evgeny Grin (Karlson2k) 93a5a52a01 mhd_str: fixed code style 2021-11-01 21:03:01 +03:00
Evgeny Grin (Karlson2k) 50b4782fe3 mhd_str: clarified doxy for function 2021-11-01 21:02:34 +03:00
Evgeny Grin (Karlson2k) 317691bc97 mhd_str: minor improvement 2021-11-01 21:01:47 +03:00
Evgeny Grin (Karlson2k) 7131f38760 memorypool: minor code improvments 2021-10-31 18:57:09 +03:00
Evgeny Grin (Karlson2k) 528d96de5f memorypool: fixed code style 2021-10-31 18:48:55 +03:00
Evgeny Grin (Karlson2k) f40ddb9e08 memorypool: improved macros for manual poisoning 2021-10-31 18:48:40 +03:00
Evgeny Grin (Karlson2k) ed87ddd217 mhd_bithelpers: unified _MHD_ROTx32() behavior 2021-10-31 18:40:39 +03:00
Evgeny Grin (Karlson2k) 55f059ee0a Sync doxy header and source 2021-10-31 18:23:23 +03:00
Evgeny Grin (Karlson2k) 9d142ff1a7 microhttpd.h: fixed code style 2021-10-31 18:21:56 +03:00
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