Migrate to libmicrohttpd 1.0.0 API with new features#370
Open
Conversation
Raise minimum libmicrohttpd requirement to 1.0.0 and migrate all deprecated APIs to their v3 replacements: - Basic Auth: MHD_basic_auth_get_username_password3, MHD_queue_basic_auth_required_response3 with UTF-8 support - Digest Auth: MHD_digest_auth_check3, MHD_digest_auth_check_digest3, MHD_queue_auth_required_response3 with SHA-512/256, userhash, nonce binding, and structured digest_auth_result enum Add new response types: empty_response, pipe_response, iovec_response. Add external event loop integration (run, run_wait, get_fdset, get_timeout, add_connection), daemon management (quiesce, get_listen_fd, get_active_connections, get_bound_port), and numerous new daemon options (listen_backlog, address_reuse, tcp_fastopen_queue_size, turbo, etc.). Add conditional WebSocket support via libmicrohttpd_ws. Add utility functions: reason_phrase, is_feature_supported, get_mhd_version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
digest_auth_resultenum)empty_response,pipe_response,iovec_responserun(),run_wait(),get_fdset(),get_timeout(),add_connection()quiesce(),get_listen_fd(),get_active_connections(),get_bound_port()listen_backlog,address_reuse,connection_memory_increment,tcp_fastopen_queue_size,sigpipe_handled_by_app,https_mem_dhparams,https_key_password,https_priorities_append,no_alpn,client_discipline_levelno_listen_socket,no_thread_safety,turbo,suppress_date_headerlibmicrohttpd_ws(websocket_handler,websocket_session,register_ws_resource())reason_phrase(),is_feature_supported(),get_mhd_version()Breaking changes
check_digest_auth()now returnsdigest_auth_resultenum instead ofbool+reload_nonceout-paramcheck_digest_auth_ha1()renamed tocheck_digest_auth_digest()to match MHD v3 namingdigest_auth_fail_responseconstructor parameter order changed;reload_noncerenamed tosignal_staleTest plan
daemon_infointegration test for daemon management methodsnew_response_typesintegration test for empty/pipe/iovec responsesmake checkwith libmicrohttpd >= 1.0.0libmicrohttpd_ws)