79 #ifndef MHD_MICROHTTPD_H
80 #define MHD_MICROHTTPD_H
103 #ifndef MHD_PLATFORM_H
104 #if defined(_WIN32) && ! defined(__CYGWIN__) && \
105 ! defined(_CRT_DECLARE_NONSTDC_NAMES)
106 #define _CRT_DECLARE_NONSTDC_NAMES 1
110 #include <sys/types.h>
111 #if ! defined(_WIN32) || defined(__CYGWIN__)
113 #include <sys/time.h>
114 #include <sys/socket.h>
117 #define _CRT_DECLARE_NONSTDC_NAMES 1
118 #include <ws2tcpip.h>
119 #if defined(_MSC_FULL_VER) && ! defined (_SSIZE_T_DEFINED)
120 #define _SSIZE_T_DEFINED
121 typedef intptr_t ssize_t;
126 #if defined(__CYGWIN__) && ! defined(_SYS_TYPES_FD_SET)
128 #error Cygwin with winsock fd_set is not supported
136 #define MHD_VERSION 0x00097200
159 #define MHD_INVALID_NONCE -1
166 #define MHD_SIZE_UNKNOWN UINT64_MAX
168 #define MHD_SIZE_UNKNOWN ((uint64_t) -1LL)
172 #define MHD_CONTENT_READER_END_OF_STREAM SIZE_MAX
173 #define MHD_CONTENT_READER_END_WITH_ERROR (SIZE_MAX - 1)
175 #define MHD_CONTENT_READER_END_OF_STREAM ((size_t) -1LL)
176 #define MHD_CONTENT_READER_END_WITH_ERROR (((size_t) -1LL) - 1)
180 #if defined(_WIN32) && defined(MHD_W32LIB)
181 #define _MHD_EXTERN extern
182 #elif defined (_WIN32) && defined(MHD_W32DLL)
184 #define _MHD_EXTERN __declspec(dllimport)
186 #define _MHD_EXTERN extern
190 #ifndef MHD_SOCKET_DEFINED
194 #if ! defined(_WIN32) || defined(_SYS_TYPES_FD_SET)
195 #define MHD_POSIX_SOCKETS 1
197 #define MHD_INVALID_SOCKET (-1)
199 #define MHD_WINSOCK_SOCKETS 1
200 #include <winsock2.h>
202 #define MHD_INVALID_SOCKET (INVALID_SOCKET)
204 #define MHD_SOCKET_DEFINED 1
210 #ifdef MHD_NO_DEPRECATION
211 #define _MHD_DEPR_MACRO(msg)
212 #define _MHD_NO_DEPR_IN_MACRO 1
213 #define _MHD_DEPR_IN_MACRO(msg)
214 #define _MHD_NO_DEPR_FUNC 1
215 #define _MHD_DEPR_FUNC(msg)
218 #ifndef _MHD_DEPR_MACRO
219 #if defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1500
222 #define _MHD_INSTRMACRO(a) #a
223 #define _MHD_STRMACRO(a) _MHD_INSTRMACRO (a)
225 #define _MHD_DEPR_MACRO(msg) __pragma (message (__FILE__ "(" _MHD_STRMACRO ( \
226 __LINE__) "): warning: " msg))
227 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
228 #elif defined(__clang__) || defined (__GNUC_PATCHLEVEL__)
230 #define _MHD_GCC_PRAG(x) _Pragma (#x)
231 #if (defined(__clang__) && (__clang_major__ + 0 >= 5 || \
232 (! defined(__apple_build_version__) && \
233 (__clang_major__ + 0 > 3 || (__clang_major__ + 0 == 3 && __clang_minor__ >= \
235 __GNUC__ + 0 > 4 || (__GNUC__ + 0 == 4 && __GNUC_MINOR__ + 0 >= 8)
238 #define _MHD_DEPR_MACRO(msg) _MHD_GCC_PRAG (GCC warning msg)
239 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
242 #define _MHD_DEPR_MACRO(msg) _MHD_GCC_PRAG (message msg)
243 #if (defined(__clang__) && (__clang_major__ + 0 > 2 || (__clang_major__ + 0 == \
244 2 && __clang_minor__ >= \
247 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
254 #ifndef _MHD_DEPR_MACRO
255 #define _MHD_DEPR_MACRO(msg)
258 #ifndef _MHD_DEPR_IN_MACRO
259 #define _MHD_NO_DEPR_IN_MACRO 1
260 #define _MHD_DEPR_IN_MACRO(msg)
263 #ifndef _MHD_DEPR_FUNC
264 #if defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1400
266 #define _MHD_DEPR_FUNC(msg) __declspec(deprecated (msg))
267 #elif defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1310
269 #define _MHD_DEPR_FUNC(msg) __declspec(deprecated)
270 #elif (__GNUC__ + 0 >= 5) || (defined (__clang__) && \
271 (__clang_major__ + 0 > 2 || (__clang_major__ + 0 == 2 && __clang_minor__ >= \
274 #define _MHD_DEPR_FUNC(msg) __attribute__((deprecated (msg)))
275 #elif defined (__clang__) || __GNUC__ + 0 > 3 || (__GNUC__ + 0 == 3 && \
276 __GNUC_MINOR__ + 0 >= 1)
279 #define _MHD_DEPR_FUNC(msg) __attribute__((__deprecated__))
284 #ifndef _MHD_DEPR_FUNC
285 #define _MHD_NO_DEPR_FUNC 1
286 #define _MHD_DEPR_FUNC(msg)
294 #ifndef MHD_LONG_LONG
298 #define MHD_LONG_LONG long long
299 #define MHD_UNSIGNED_LONG_LONG unsigned long long
302 "Macro MHD_LONG_LONG is deprecated, use MHD_UNSIGNED_LONG_LONG")
308 #ifndef MHD_LONG_LONG_PRINTF
312 #define MHD_LONG_LONG_PRINTF "ll"
313 #define MHD_UNSIGNED_LONG_LONG_PRINTF "%llu"
316 "Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG_LONG_PRINTF")
323 #define MHD_MD5_DIGEST_SIZE 16
335 #define MHD_HTTP_CONTINUE 100
337 #define MHD_HTTP_SWITCHING_PROTOCOLS 101
339 #define MHD_HTTP_PROCESSING 102
341 #define MHD_HTTP_EARLY_HINTS 103
344 #define MHD_HTTP_OK 200
346 #define MHD_HTTP_CREATED 201
348 #define MHD_HTTP_ACCEPTED 202
350 #define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION 203
352 #define MHD_HTTP_NO_CONTENT 204
354 #define MHD_HTTP_RESET_CONTENT 205
356 #define MHD_HTTP_PARTIAL_CONTENT 206
358 #define MHD_HTTP_MULTI_STATUS 207
360 #define MHD_HTTP_ALREADY_REPORTED 208
363 #define MHD_HTTP_IM_USED 226
366 #define MHD_HTTP_MULTIPLE_CHOICES 300
368 #define MHD_HTTP_MOVED_PERMANENTLY 301
370 #define MHD_HTTP_FOUND 302
372 #define MHD_HTTP_SEE_OTHER 303
374 #define MHD_HTTP_NOT_MODIFIED 304
376 #define MHD_HTTP_USE_PROXY 305
378 #define MHD_HTTP_SWITCH_PROXY 306
380 #define MHD_HTTP_TEMPORARY_REDIRECT 307
382 #define MHD_HTTP_PERMANENT_REDIRECT 308
385 #define MHD_HTTP_BAD_REQUEST 400
387 #define MHD_HTTP_UNAUTHORIZED 401
389 #define MHD_HTTP_PAYMENT_REQUIRED 402
391 #define MHD_HTTP_FORBIDDEN 403
393 #define MHD_HTTP_NOT_FOUND 404
395 #define MHD_HTTP_METHOD_NOT_ALLOWED 405
397 #define MHD_HTTP_NOT_ACCEPTABLE 406
399 #define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED 407
401 #define MHD_HTTP_REQUEST_TIMEOUT 408
403 #define MHD_HTTP_CONFLICT 409
405 #define MHD_HTTP_GONE 410
407 #define MHD_HTTP_LENGTH_REQUIRED 411
409 #define MHD_HTTP_PRECONDITION_FAILED 412
411 #define MHD_HTTP_PAYLOAD_TOO_LARGE 413
413 #define MHD_HTTP_URI_TOO_LONG 414
415 #define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE 415
417 #define MHD_HTTP_RANGE_NOT_SATISFIABLE 416
419 #define MHD_HTTP_EXPECTATION_FAILED 417
422 #define MHD_HTTP_MISDIRECTED_REQUEST 421
424 #define MHD_HTTP_UNPROCESSABLE_ENTITY 422
426 #define MHD_HTTP_LOCKED 423
428 #define MHD_HTTP_FAILED_DEPENDENCY 424
430 #define MHD_HTTP_TOO_EARLY 425
432 #define MHD_HTTP_UPGRADE_REQUIRED 426
435 #define MHD_HTTP_PRECONDITION_REQUIRED 428
437 #define MHD_HTTP_TOO_MANY_REQUESTS 429
440 #define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
443 #define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451
446 #define MHD_HTTP_INTERNAL_SERVER_ERROR 500
448 #define MHD_HTTP_NOT_IMPLEMENTED 501
450 #define MHD_HTTP_BAD_GATEWAY 502
452 #define MHD_HTTP_SERVICE_UNAVAILABLE 503
454 #define MHD_HTTP_GATEWAY_TIMEOUT 504
456 #define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED 505
458 #define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506
460 #define MHD_HTTP_INSUFFICIENT_STORAGE 507
462 #define MHD_HTTP_LOOP_DETECTED 508
465 #define MHD_HTTP_NOT_EXTENDED 510
467 #define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED 511
472 #define MHD_HTTP_RETRY_WITH 449
475 #define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS 450
478 #define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED 509
483 #define MHD_HTTP_METHOD_NOT_ACCEPTABLE \
484 _MHD_DEPR_IN_MACRO ( \
485 "Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE") \
489 #define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE \
490 _MHD_DEPR_IN_MACRO ( \
491 "Value MHD_HTTP_REQUEST_ENTITY_TOO_LARGE is deprecated, use MHD_HTTP_PAYLOAD_TOO_LARGE") \
495 #define MHD_HTTP_REQUEST_URI_TOO_LONG \
496 _MHD_DEPR_IN_MACRO ( \
497 "Value MHD_HTTP_REQUEST_URI_TOO_LONG is deprecated, use MHD_HTTP_URI_TOO_LONG") \
501 #define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE \
502 _MHD_DEPR_IN_MACRO ( \
503 "Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE") \
507 #define MHD_HTTP_UNORDERED_COLLECTION \
508 _MHD_DEPR_IN_MACRO ( \
509 "Value MHD_HTTP_UNORDERED_COLLECTION is deprecated as it was removed from RFC") \
513 #define MHD_HTTP_NO_RESPONSE \
514 _MHD_DEPR_IN_MACRO ( \
515 "Value MHD_HTTP_NO_RESPONSE is deprecated as it is nginx internal code for logs only") \
537 #define MHD_ICY_FLAG ((uint32_t) (((uint32_t) 1) << 31))
549 #define MHD_HTTP_HEADER_ACCEPT "Accept"
551 #define MHD_HTTP_HEADER_ACCEPT_CHARSET "Accept-Charset"
553 #define MHD_HTTP_HEADER_ACCEPT_ENCODING "Accept-Encoding"
555 #define MHD_HTTP_HEADER_ACCEPT_LANGUAGE "Accept-Language"
557 #define MHD_HTTP_HEADER_ACCEPT_RANGES "Accept-Ranges"
559 #define MHD_HTTP_HEADER_AGE "Age"
561 #define MHD_HTTP_HEADER_ALLOW "Allow"
563 #define MHD_HTTP_HEADER_AUTHORIZATION "Authorization"
565 #define MHD_HTTP_HEADER_CACHE_CONTROL "Cache-Control"
567 #define MHD_HTTP_HEADER_CLOSE "Close"
569 #define MHD_HTTP_HEADER_CONNECTION "Connection"
571 #define MHD_HTTP_HEADER_CONTENT_ENCODING "Content-Encoding"
573 #define MHD_HTTP_HEADER_CONTENT_LANGUAGE "Content-Language"
575 #define MHD_HTTP_HEADER_CONTENT_LENGTH "Content-Length"
577 #define MHD_HTTP_HEADER_CONTENT_LOCATION "Content-Location"
579 #define MHD_HTTP_HEADER_CONTENT_RANGE "Content-Range"
581 #define MHD_HTTP_HEADER_CONTENT_TYPE "Content-Type"
583 #define MHD_HTTP_HEADER_DATE "Date"
585 #define MHD_HTTP_HEADER_ETAG "ETag"
587 #define MHD_HTTP_HEADER_EXPECT "Expect"
589 #define MHD_HTTP_HEADER_EXPIRES "Expires"
591 #define MHD_HTTP_HEADER_FROM "From"
593 #define MHD_HTTP_HEADER_HOST "Host"
595 #define MHD_HTTP_HEADER_IF_MATCH "If-Match"
597 #define MHD_HTTP_HEADER_IF_MODIFIED_SINCE "If-Modified-Since"
599 #define MHD_HTTP_HEADER_IF_NONE_MATCH "If-None-Match"
601 #define MHD_HTTP_HEADER_IF_RANGE "If-Range"
603 #define MHD_HTTP_HEADER_IF_UNMODIFIED_SINCE "If-Unmodified-Since"
605 #define MHD_HTTP_HEADER_LAST_MODIFIED "Last-Modified"
607 #define MHD_HTTP_HEADER_LOCATION "Location"
609 #define MHD_HTTP_HEADER_MAX_FORWARDS "Max-Forwards"
611 #define MHD_HTTP_HEADER_MIME_VERSION "MIME-Version"
613 #define MHD_HTTP_HEADER_PRAGMA "Pragma"
615 #define MHD_HTTP_HEADER_PROXY_AUTHENTICATE "Proxy-Authenticate"
617 #define MHD_HTTP_HEADER_PROXY_AUTHORIZATION "Proxy-Authorization"
619 #define MHD_HTTP_HEADER_RANGE "Range"
621 #define MHD_HTTP_HEADER_REFERER "Referer"
623 #define MHD_HTTP_HEADER_RETRY_AFTER "Retry-After"
625 #define MHD_HTTP_HEADER_SERVER "Server"
627 #define MHD_HTTP_HEADER_TE "TE"
629 #define MHD_HTTP_HEADER_TRAILER "Trailer"
631 #define MHD_HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding"
633 #define MHD_HTTP_HEADER_UPGRADE "Upgrade"
635 #define MHD_HTTP_HEADER_USER_AGENT "User-Agent"
637 #define MHD_HTTP_HEADER_VARY "Vary"
639 #define MHD_HTTP_HEADER_VIA "Via"
641 #define MHD_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate"
643 #define MHD_HTTP_HEADER_WARNING "Warning"
647 #define MHD_HTTP_HEADER_A_IM "A-IM"
649 #define MHD_HTTP_HEADER_ACCEPT_ADDITIONS "Accept-Additions"
651 #define MHD_HTTP_HEADER_ACCEPT_CH "Accept-CH"
653 #define MHD_HTTP_HEADER_ACCEPT_DATETIME "Accept-Datetime"
655 #define MHD_HTTP_HEADER_ACCEPT_FEATURES "Accept-Features"
657 #define MHD_HTTP_HEADER_ACCEPT_PATCH "Accept-Patch"
659 #define MHD_HTTP_HEADER_ACCEPT_POST "Accept-Post"
661 #define MHD_HTTP_HEADER_ALPN "ALPN"
663 #define MHD_HTTP_HEADER_ALT_SVC "Alt-Svc"
665 #define MHD_HTTP_HEADER_ALT_USED "Alt-Used"
667 #define MHD_HTTP_HEADER_ALTERNATES "Alternates"
669 #define MHD_HTTP_HEADER_APPLY_TO_REDIRECT_REF "Apply-To-Redirect-Ref"
671 #define MHD_HTTP_HEADER_AUTHENTICATION_CONTROL "Authentication-Control"
673 #define MHD_HTTP_HEADER_AUTHENTICATION_INFO "Authentication-Info"
675 #define MHD_HTTP_HEADER_C_EXT "C-Ext"
677 #define MHD_HTTP_HEADER_C_MAN "C-Man"
679 #define MHD_HTTP_HEADER_C_OPT "C-Opt"
681 #define MHD_HTTP_HEADER_C_PEP "C-PEP"
683 #define MHD_HTTP_HEADER_C_PEP_INFO "C-PEP-Info"
685 #define MHD_HTTP_HEADER_CAL_MANAGED_ID "Cal-Managed-ID"
687 #define MHD_HTTP_HEADER_CALDAV_TIMEZONES "CalDAV-Timezones"
689 #define MHD_HTTP_HEADER_CDN_LOOP "CDN-Loop"
691 #define MHD_HTTP_HEADER_CERT_NOT_AFTER "Cert-Not-After"
693 #define MHD_HTTP_HEADER_CERT_NOT_BEFORE "Cert-Not-Before"
695 #define MHD_HTTP_HEADER_CONTENT_BASE "Content-Base"
697 #define MHD_HTTP_HEADER_CONTENT_DISPOSITION "Content-Disposition"
699 #define MHD_HTTP_HEADER_CONTENT_ID "Content-ID"
701 #define MHD_HTTP_HEADER_CONTENT_MD5 "Content-MD5"
703 #define MHD_HTTP_HEADER_CONTENT_SCRIPT_TYPE "Content-Script-Type"
705 #define MHD_HTTP_HEADER_CONTENT_STYLE_TYPE "Content-Style-Type"
707 #define MHD_HTTP_HEADER_CONTENT_VERSION "Content-Version"
709 #define MHD_HTTP_HEADER_COOKIE "Cookie"
711 #define MHD_HTTP_HEADER_COOKIE2 "Cookie2"
713 #define MHD_HTTP_HEADER_DASL "DASL"
715 #define MHD_HTTP_HEADER_DAV "DAV"
717 #define MHD_HTTP_HEADER_DEFAULT_STYLE "Default-Style"
719 #define MHD_HTTP_HEADER_DELTA_BASE "Delta-Base"
721 #define MHD_HTTP_HEADER_DEPTH "Depth"
723 #define MHD_HTTP_HEADER_DERIVED_FROM "Derived-From"
725 #define MHD_HTTP_HEADER_DESTINATION "Destination"
727 #define MHD_HTTP_HEADER_DIFFERENTIAL_ID "Differential-ID"
729 #define MHD_HTTP_HEADER_DIGEST "Digest"
731 #define MHD_HTTP_HEADER_EARLY_DATA "Early-Data"
733 #define MHD_HTTP_HEADER_EXPECT_CT "Expect-CT"
735 #define MHD_HTTP_HEADER_EXT "Ext"
737 #define MHD_HTTP_HEADER_FORWARDED "Forwarded"
739 #define MHD_HTTP_HEADER_GETPROFILE "GetProfile"
741 #define MHD_HTTP_HEADER_HOBAREG "Hobareg"
743 #define MHD_HTTP_HEADER_HTTP2_SETTINGS "HTTP2-Settings"
745 #define MHD_HTTP_HEADER_IM "IM"
747 #define MHD_HTTP_HEADER_IF "If"
749 #define MHD_HTTP_HEADER_IF_SCHEDULE_TAG_MATCH "If-Schedule-Tag-Match"
751 #define MHD_HTTP_HEADER_INCLUDE_REFERRED_TOKEN_BINDING_ID \
752 "Include-Referred-Token-Binding-ID"
754 #define MHD_HTTP_HEADER_KEEP_ALIVE "Keep-Alive"
756 #define MHD_HTTP_HEADER_LABEL "Label"
758 #define MHD_HTTP_HEADER_LINK "Link"
760 #define MHD_HTTP_HEADER_LOCK_TOKEN "Lock-Token"
762 #define MHD_HTTP_HEADER_MAN "Man"
764 #define MHD_HTTP_HEADER_MEMENTO_DATETIME "Memento-Datetime"
766 #define MHD_HTTP_HEADER_METER "Meter"
768 #define MHD_HTTP_HEADER_NEGOTIATE "Negotiate"
770 #define MHD_HTTP_HEADER_ODATA_ENTITYID "OData-EntityId"
772 #define MHD_HTTP_HEADER_ODATA_ISOLATION "OData-Isolation"
774 #define MHD_HTTP_HEADER_ODATA_MAXVERSION "OData-MaxVersion"
776 #define MHD_HTTP_HEADER_ODATA_VERSION "OData-Version"
778 #define MHD_HTTP_HEADER_OPT "Opt"
780 #define MHD_HTTP_HEADER_OPTIONAL_WWW_AUTHENTICATE "Optional-WWW-Authenticate"
782 #define MHD_HTTP_HEADER_ORDERING_TYPE "Ordering-Type"
784 #define MHD_HTTP_HEADER_ORIGIN "Origin"
786 #define MHD_HTTP_HEADER_OSCORE "OSCORE"
788 #define MHD_HTTP_HEADER_OVERWRITE "Overwrite"
790 #define MHD_HTTP_HEADER_P3P "P3P"
792 #define MHD_HTTP_HEADER_PEP "PEP"
794 #define MHD_HTTP_HEADER_PICS_LABEL "PICS-Label"
796 #define MHD_HTTP_HEADER_PEP_INFO "Pep-Info"
798 #define MHD_HTTP_HEADER_POSITION "Position"
800 #define MHD_HTTP_HEADER_PREFER "Prefer"
802 #define MHD_HTTP_HEADER_PREFERENCE_APPLIED "Preference-Applied"
804 #define MHD_HTTP_HEADER_PROFILEOBJECT "ProfileObject"
806 #define MHD_HTTP_HEADER_PROTOCOL "Protocol"
808 #define MHD_HTTP_HEADER_PROTOCOL_INFO "Protocol-Info"
810 #define MHD_HTTP_HEADER_PROTOCOL_QUERY "Protocol-Query"
812 #define MHD_HTTP_HEADER_PROTOCOL_REQUEST "Protocol-Request"
814 #define MHD_HTTP_HEADER_PROXY_AUTHENTICATION_INFO "Proxy-Authentication-Info"
816 #define MHD_HTTP_HEADER_PROXY_FEATURES "Proxy-Features"
818 #define MHD_HTTP_HEADER_PROXY_INSTRUCTION "Proxy-Instruction"
820 #define MHD_HTTP_HEADER_PUBLIC "Public"
822 #define MHD_HTTP_HEADER_PUBLIC_KEY_PINS "Public-Key-Pins"
824 #define MHD_HTTP_HEADER_PUBLIC_KEY_PINS_REPORT_ONLY \
825 "Public-Key-Pins-Report-Only"
827 #define MHD_HTTP_HEADER_REDIRECT_REF "Redirect-Ref"
829 #define MHD_HTTP_HEADER_REPLAY_NONCE "Replay-Nonce"
831 #define MHD_HTTP_HEADER_SAFE "Safe"
833 #define MHD_HTTP_HEADER_SCHEDULE_REPLY "Schedule-Reply"
835 #define MHD_HTTP_HEADER_SCHEDULE_TAG "Schedule-Tag"
837 #define MHD_HTTP_HEADER_SEC_TOKEN_BINDING "Sec-Token-Binding"
839 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_ACCEPT "Sec-WebSocket-Accept"
841 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_EXTENSIONS "Sec-WebSocket-Extensions"
843 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_KEY "Sec-WebSocket-Key"
845 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_PROTOCOL "Sec-WebSocket-Protocol"
847 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_VERSION "Sec-WebSocket-Version"
849 #define MHD_HTTP_HEADER_SECURITY_SCHEME "Security-Scheme"
851 #define MHD_HTTP_HEADER_SET_COOKIE "Set-Cookie"
853 #define MHD_HTTP_HEADER_SET_COOKIE2 "Set-Cookie2"
855 #define MHD_HTTP_HEADER_SETPROFILE "SetProfile"
857 #define MHD_HTTP_HEADER_SLUG "SLUG"
859 #define MHD_HTTP_HEADER_SOAPACTION "SoapAction"
861 #define MHD_HTTP_HEADER_STATUS_URI "Status-URI"
863 #define MHD_HTTP_HEADER_STRICT_TRANSPORT_SECURITY "Strict-Transport-Security"
865 #define MHD_HTTP_HEADER_SUNSET "Sunset"
867 #define MHD_HTTP_HEADER_SURROGATE_CAPABILITY "Surrogate-Capability"
869 #define MHD_HTTP_HEADER_SURROGATE_CONTROL "Surrogate-Control"
871 #define MHD_HTTP_HEADER_TCN "TCN"
873 #define MHD_HTTP_HEADER_TIMEOUT "Timeout"
875 #define MHD_HTTP_HEADER_TOPIC "Topic"
877 #define MHD_HTTP_HEADER_TTL "TTL"
879 #define MHD_HTTP_HEADER_URGENCY "Urgency"
881 #define MHD_HTTP_HEADER_URI "URI"
883 #define MHD_HTTP_HEADER_VARIANT_VARY "Variant-Vary"
885 #define MHD_HTTP_HEADER_WANT_DIGEST "Want-Digest"
887 #define MHD_HTTP_HEADER_X_CONTENT_TYPE_OPTIONS "X-Content-Type-Options"
889 #define MHD_HTTP_HEADER_X_FRAME_OPTIONS "X-Frame-Options"
892 #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN \
893 "Access-Control-Allow-Origin"
902 #define MHD_HTTP_VERSION_1_0 "HTTP/1.0"
903 #define MHD_HTTP_VERSION_1_1 "HTTP/1.1"
917 #define MHD_HTTP_METHOD_CONNECT "CONNECT"
919 #define MHD_HTTP_METHOD_DELETE "DELETE"
921 #define MHD_HTTP_METHOD_GET "GET"
923 #define MHD_HTTP_METHOD_HEAD "HEAD"
925 #define MHD_HTTP_METHOD_OPTIONS "OPTIONS"
927 #define MHD_HTTP_METHOD_POST "POST"
929 #define MHD_HTTP_METHOD_PUT "PUT"
931 #define MHD_HTTP_METHOD_TRACE "TRACE"
935 #define MHD_HTTP_METHOD_ACL "ACL"
937 #define MHD_HTTP_METHOD_BASELINE_CONTROL "BASELINE-CONTROL"
939 #define MHD_HTTP_METHOD_BIND "BIND"
941 #define MHD_HTTP_METHOD_CHECKIN "CHECKIN"
943 #define MHD_HTTP_METHOD_CHECKOUT "CHECKOUT"
945 #define MHD_HTTP_METHOD_COPY "COPY"
947 #define MHD_HTTP_METHOD_LABEL "LABEL"
949 #define MHD_HTTP_METHOD_LINK "LINK"
951 #define MHD_HTTP_METHOD_LOCK "LOCK"
953 #define MHD_HTTP_METHOD_MERGE "MERGE"
955 #define MHD_HTTP_METHOD_MKACTIVITY "MKACTIVITY"
957 #define MHD_HTTP_METHOD_MKCALENDAR "MKCALENDAR"
959 #define MHD_HTTP_METHOD_MKCOL "MKCOL"
961 #define MHD_HTTP_METHOD_MKREDIRECTREF "MKREDIRECTREF"
963 #define MHD_HTTP_METHOD_MKWORKSPACE "MKWORKSPACE"
965 #define MHD_HTTP_METHOD_MOVE "MOVE"
967 #define MHD_HTTP_METHOD_ORDERPATCH "ORDERPATCH"
969 #define MHD_HTTP_METHOD_PATCH "PATCH"
971 #define MHD_HTTP_METHOD_PRI "PRI"
973 #define MHD_HTTP_METHOD_PROPFIND "PROPFIND"
975 #define MHD_HTTP_METHOD_PROPPATCH "PROPPATCH"
977 #define MHD_HTTP_METHOD_REBIND "REBIND"
979 #define MHD_HTTP_METHOD_REPORT "REPORT"
981 #define MHD_HTTP_METHOD_SEARCH "SEARCH"
983 #define MHD_HTTP_METHOD_UNBIND "UNBIND"
985 #define MHD_HTTP_METHOD_UNCHECKOUT "UNCHECKOUT"
987 #define MHD_HTTP_METHOD_UNLINK "UNLINK"
989 #define MHD_HTTP_METHOD_UNLOCK "UNLOCK"
991 #define MHD_HTTP_METHOD_UPDATE "UPDATE"
993 #define MHD_HTTP_METHOD_UPDATEREDIRECTREF "UPDATEREDIRECTREF"
995 #define MHD_HTTP_METHOD_VERSION_CONTROL "VERSION-CONTROL"
1004 #define MHD_HTTP_POST_ENCODING_FORM_URLENCODED \
1005 "application/x-www-form-urlencoded"
1006 #define MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA "multipart/form-data"
1037 struct MHD_PostProcessor;
1081 #define MHD_USE_SSL \
1082 _MHD_DEPR_IN_MACRO ("Value MHD_USE_SSL is deprecated, use MHD_USE_TLS") \
1106 #define MHD_USE_SELECT_INTERNALLY \
1107 _MHD_DEPR_IN_MACRO ( \
1108 "Value MHD_USE_SELECT_INTERNALLY is deprecated, use MHD_USE_INTERNAL_POLLING_THREAD instead") \
1109 MHD_USE_INTERNAL_POLLING_THREAD
1132 #define MHD_USE_PEDANTIC_CHECKS \
1133 _MHD_DEPR_IN_MACRO ( \
1134 "Flag MHD_USE_PEDANTIC_CHECKS is deprecated, use option MHD_OPTION_STRICT_FOR_CLIENT instead") \
1157 #define MHD_USE_POLL_INTERNALLY \
1158 _MHD_DEPR_IN_MACRO ( \
1159 "Value MHD_USE_POLL_INTERNALLY is deprecated, use MHD_USE_POLL_INTERNAL_THREAD instead") \
1160 MHD_USE_POLL_INTERNAL_THREAD
1174 #define MHD_SUPPRESS_DATE_NO_CLOCK \
1175 _MHD_DEPR_IN_MACRO ( \
1176 "Value MHD_SUPPRESS_DATE_NO_CLOCK is deprecated, use MHD_USE_SUPPRESS_DATE_NO_CLOCK instead") \
1177 MHD_USE_SUPPRESS_DATE_NO_CLOCK
1201 #define MHD_USE_EPOLL_LINUX_ONLY \
1202 _MHD_DEPR_IN_MACRO ( \
1203 "Value MHD_USE_EPOLL_LINUX_ONLY is deprecated, use MHD_USE_EPOLL") \
1222 #define MHD_USE_EPOLL_INTERNALLY \
1223 _MHD_DEPR_IN_MACRO ( \
1224 "Value MHD_USE_EPOLL_INTERNALLY is deprecated, use MHD_USE_EPOLL_INTERNAL_THREAD") \
1225 MHD_USE_EPOLL_INTERNAL_THREAD
1227 #define MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY \
1228 _MHD_DEPR_IN_MACRO ( \
1229 "Value MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY is deprecated, use MHD_USE_EPOLL_INTERNAL_THREAD") \
1230 MHD_USE_EPOLL_INTERNAL_THREAD
1250 #define MHD_USE_PIPE_FOR_SHUTDOWN \
1251 _MHD_DEPR_IN_MACRO ( \
1252 "Value MHD_USE_PIPE_FOR_SHUTDOWN is deprecated, use MHD_USE_ITC") \
1272 #define MHD_USE_EPOLL_TURBO \
1273 _MHD_DEPR_IN_MACRO ( \
1274 "Value MHD_USE_EPOLL_TURBO is deprecated, use MHD_USE_TURBO") \
1287 #define MHD_USE_SUSPEND_RESUME \
1288 _MHD_DEPR_IN_MACRO ( \
1289 "Value MHD_USE_SUSPEND_RESUME is deprecated, use MHD_ALLOW_SUSPEND_RESUME instead") \
1290 MHD_ALLOW_SUSPEND_RESUME
1372 const char *username,
1788 #define MHD_RESPONSE_HEADER_KIND \
1789 _MHD_DEPR_IN_MACRO ( \
1790 "Value MHD_RESPONSE_HEADER_KIND is deprecated and not used") \
1791 MHD_RESPONSE_HEADER_KIND
2134 const char *reason);
2146 const struct sockaddr *addr,
2195 const char *upload_data,
2196 size_t *upload_data_size,
2381 const char *filename,
2382 const char *content_type,
2383 const char *transfer_encoding,
2510 const struct sockaddr *addr,
2545 fd_set *read_fd_set,
2546 fd_set *write_fd_set,
2547 fd_set *except_fd_set,
2585 fd_set *read_fd_set,
2586 fd_set *write_fd_set,
2587 fd_set *except_fd_set,
2589 unsigned int fd_setsize);
2616 #define MHD_get_fdset(daemon,read_fd_set,write_fd_set,except_fd_set,max_fd) \
2617 MHD_get_fdset2 ((daemon),(read_fd_set),(write_fd_set),(except_fd_set), \
2618 (max_fd),FD_SETSIZE)
2692 const fd_set *read_fd_set,
2693 const fd_set *write_fd_set,
2694 const fd_set *except_fd_set);
2715 void *iterator_cls);
2734 void *iterator_cls);
2877 const char **value_ptr,
2878 size_t *value_size_ptr);
2894 unsigned int status_code,
3050 "MHD_create_response_from_data() is deprecated, use MHD_create_response_from_buffer()") \
3192 "Function MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \
3198 #if ! defined(_MHD_NO_DEPR_IN_MACRO) || defined(_MHD_NO_DEPR_FUNC)
3201 #define MHD_create_response_from_fd_at_offset(size,fd,offset) \
3202 _MHD_DEPR_IN_MACRO ( \
3203 "Usage of MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \
3204 MHD_create_response_from_fd_at_offset64 ((size),(fd),(offset))
3264 struct MHD_UpgradeResponseHandle;
3336 const char *extra_in,
3337 size_t extra_in_size,
3339 struct MHD_UpgradeResponseHandle *urh);
3373 void *upgrade_handler_cls);
3402 const char *content);
3417 const char *content);
3432 const char *content);
3448 void *iterator_cls);
3512 const char *post_data,
size_t post_data_len);
3537 #define MHD_INVALID_NONCE -1
3605 const char *username,
3606 const char *password,
3607 unsigned int nonce_timeout,
3632 const char *username,
3633 const char *password,
3634 unsigned int nonce_timeout);
3657 const char *username,
3658 const uint8_t *digest,
3660 unsigned int nonce_timeout,
3685 const char *username,
3687 unsigned int nonce_timeout);
_MHD_EXTERN char * MHD_digest_auth_get_username(struct MHD_Connection *connection)
_MHD_EXTERN int MHD_digest_auth_check2(struct MHD_Connection *connection, const char *realm, const char *username, const char *password, unsigned int nonce_timeout, enum MHD_DigestAuthAlgorithm algo)
_MHD_EXTERN enum MHD_Result MHD_queue_auth_fail_response2(struct MHD_Connection *connection, const char *realm, const char *opaque, struct MHD_Response *response, int signal_stale, enum MHD_DigestAuthAlgorithm algo)
_MHD_EXTERN int MHD_digest_auth_check_digest2(struct MHD_Connection *connection, const char *realm, const char *username, const uint8_t *digest, size_t digest_size, unsigned int nonce_timeout, enum MHD_DigestAuthAlgorithm algo)
_MHD_EXTERN char * MHD_basic_auth_get_username_password(struct MHD_Connection *connection, char **password)
_MHD_EXTERN enum MHD_Result MHD_queue_auth_fail_response(struct MHD_Connection *connection, const char *realm, const char *opaque, struct MHD_Response *response, int signal_stale)
_MHD_EXTERN int MHD_digest_auth_check_digest(struct MHD_Connection *connection, const char *realm, const char *username, const uint8_t digest[MHD_MD5_DIGEST_SIZE], unsigned int nonce_timeout)
_MHD_EXTERN int MHD_digest_auth_check(struct MHD_Connection *connection, const char *realm, const char *username, const char *password, unsigned int nonce_timeout)
_MHD_EXTERN enum MHD_Result MHD_queue_basic_auth_fail_response(struct MHD_Connection *connection, const char *realm, struct MHD_Response *response)
_MHD_EXTERN struct MHD_Daemon * MHD_start_daemon(unsigned int flags, uint16_t port, MHD_AcceptPolicyCallback apc, void *apc_cls, MHD_AccessHandlerCallback dh, void *dh_cls,...)
_MHD_EXTERN void MHD_stop_daemon(struct MHD_Daemon *daemon)
_MHD_EXTERN enum MHD_Result MHD_run_from_select(struct MHD_Daemon *daemon, const fd_set *read_fd_set, const fd_set *write_fd_set, const fd_set *except_fd_set)
_MHD_EXTERN struct MHD_Daemon * MHD_start_daemon_va(unsigned int flags, uint16_t port, MHD_AcceptPolicyCallback apc, void *apc_cls, MHD_AccessHandlerCallback dh, void *dh_cls, va_list ap)
_MHD_EXTERN enum MHD_Result MHD_run(struct MHD_Daemon *daemon)
_MHD_EXTERN enum MHD_Result MHD_get_timeout(struct MHD_Daemon *daemon, MHD_UNSIGNED_LONG_LONG *timeout)
#define MHD_get_fdset(daemon, read_fd_set, write_fd_set, except_fd_set, max_fd)
_MHD_EXTERN enum MHD_Result MHD_get_fdset2(struct MHD_Daemon *daemon, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, MHD_socket *max_fd, unsigned int fd_setsize)
void(* MHD_PanicCallback)(void *cls, const char *file, unsigned int line, const char *reason)
void(* MHD_LogCallback)(void *cls, const char *fm, va_list ap)
_MHD_EXTERN void MHD_set_panic_func(MHD_PanicCallback cb, void *cls)
MHD_ConnectionNotificationCode
enum MHD_Result(* MHD_KeyValueIterator)(void *cls, enum MHD_ValueKind kind, const char *key, const char *value)
_MHD_EXTERN int MHD_get_connection_values_n(struct MHD_Connection *connection, enum MHD_ValueKind kind, MHD_KeyValueIteratorN iterator, void *iterator_cls)
_MHD_EXTERN enum MHD_Result MHD_post_process(struct MHD_PostProcessor *pp, const char *post_data, size_t post_data_len)
_MHD_EXTERN enum MHD_Result MHD_set_connection_value_n(struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key, size_t key_size, const char *value, size_t value_size)
_MHD_EXTERN struct MHD_PostProcessor * MHD_create_post_processor(struct MHD_Connection *connection, size_t buffer_size, MHD_PostDataIterator iter, void *iter_cls)
enum MHD_Result(* MHD_KeyValueIteratorN)(void *cls, enum MHD_ValueKind kind, const char *key, size_t key_size, const char *value, size_t value_size)
_MHD_EXTERN const char * MHD_lookup_connection_value(struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key)
_MHD_EXTERN int MHD_get_connection_values(struct MHD_Connection *connection, enum MHD_ValueKind kind, MHD_KeyValueIterator iterator, void *iterator_cls)
_MHD_EXTERN enum MHD_Result MHD_destroy_post_processor(struct MHD_PostProcessor *pp)
void(* MHD_NotifyConnectionCallback)(void *cls, struct MHD_Connection *connection, void **socket_context, enum MHD_ConnectionNotificationCode toe)
_MHD_EXTERN enum MHD_Result MHD_set_connection_value(struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key, const char *value)
_MHD_EXTERN enum MHD_Result MHD_lookup_connection_value_n(struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key, size_t key_size, const char **value_ptr, size_t *value_size_ptr)
MHD_RequestTerminationCode
void(* MHD_RequestCompletedCallback)(void *cls, struct MHD_Connection *connection, void **con_cls, enum MHD_RequestTerminationCode toe)
@ MHD_CONNECTION_NOTIFY_STARTED
@ MHD_CONNECTION_NOTIFY_CLOSED
@ MHD_CONNECTION_INFO_CONNECTION_TIMEOUT
@ MHD_CONNECTION_INFO_SOCKET_CONTEXT
@ MHD_CONNECTION_INFO_GNUTLS_SESSION
@ MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE
@ MHD_CONNECTION_INFO_CIPHER_ALGO
@ MHD_CONNECTION_INFO_CONNECTION_SUSPENDED
@ MHD_CONNECTION_INFO_CLIENT_ADDRESS
@ MHD_CONNECTION_INFO_DAEMON
@ MHD_CONNECTION_INFO_GNUTLS_CLIENT_CERT
@ MHD_CONNECTION_INFO_CONNECTION_FD
@ MHD_CONNECTION_INFO_PROTOCOL
@ MHD_REQUEST_TERMINATED_TIMEOUT_REACHED
@ MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN
@ MHD_REQUEST_TERMINATED_COMPLETED_OK
@ MHD_REQUEST_TERMINATED_WITH_ERROR
@ MHD_REQUEST_TERMINATED_READ_ERROR
@ MHD_REQUEST_TERMINATED_CLIENT_ABORT
_MHD_EXTERN enum MHD_Result MHD_del_response_header(struct MHD_Response *response, const char *header, const char *content)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_buffer_with_free_callback(size_t size, void *buffer, MHD_ContentReaderFreeCallback crfc)
_MHD_EXTERN enum MHD_Result MHD_add_response_footer(struct MHD_Response *response, const char *footer, const char *content)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_fd(size_t size, int fd)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_pipe(int fd)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_buffer(size_t size, void *buffer, enum MHD_ResponseMemoryMode mode)
_MHD_EXTERN int MHD_get_response_headers(struct MHD_Response *response, MHD_KeyValueIterator iterator, void *iterator_cls)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_callback(uint64_t size, size_t block_size, MHD_ContentReaderCallback crc, void *crc_cls, MHD_ContentReaderFreeCallback crfc)
_MHD_EXTERN enum MHD_Result MHD_queue_response(struct MHD_Connection *connection, unsigned int status_code, struct MHD_Response *response)
void(* MHD_ContentReaderFreeCallback)(void *cls)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_fd_at_offset64(uint64_t size, int fd, uint64_t offset)
_MHD_EXTERN void MHD_destroy_response(struct MHD_Response *response)
_MHD_EXTERN enum MHD_Result MHD_add_response_header(struct MHD_Response *response, const char *header, const char *content)
_MHD_EXTERN const char * MHD_get_response_header(struct MHD_Response *response, const char *key)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_fd64(uint64_t size, int fd)
struct MHD_Response * MHD_create_response_from_data(size_t size, void *data, int must_free, int must_copy)
_MHD_EXTERN const union MHD_DaemonInfo * MHD_get_daemon_info(struct MHD_Daemon *daemon, enum MHD_DaemonInfoType info_type,...)
_MHD_EXTERN const union MHD_ConnectionInfo * MHD_get_connection_info(struct MHD_Connection *connection, enum MHD_ConnectionInfoType info_type,...)
_MHD_EXTERN MHD_socket MHD_quiesce_daemon(struct MHD_Daemon *daemon)
_MHD_EXTERN enum MHD_Result MHD_add_connection(struct MHD_Daemon *daemon, MHD_socket client_socket, const struct sockaddr *addr, socklen_t addrlen)
_MHD_EXTERN enum MHD_Result MHD_is_feature_supported(enum MHD_FEATURE feature)
_MHD_EXTERN enum MHD_Result MHD_set_connection_option(struct MHD_Connection *connection, enum MHD_CONNECTION_OPTION option,...)
_MHD_EXTERN const char * MHD_get_version(void)
@ MHD_FEATURE_POSTPROCESSOR
@ MHD_FEATURE_SHUTDOWN_LISTEN_SOCKET
@ MHD_FEATURE_AUTODETECT_BIND_PORT
@ MHD_FEATURE_HTTPS_CERT_CALLBACK
@ MHD_FEATURE_DIGEST_AUTH
@ MHD_FEATURE_THREAD_NAMES
@ MHD_FEATURE_HTTPS_KEY_PASSWORD
@ MHD_FEATURE_AUTOSUPPRESS_SIGPIPE
@ MHD_FEATURE_RESPONSES_SHARED_FD
@ MHD_FEATURE_TCP_FASTOPEN
@ MHD_FEATURE_HTTPS_CERT_CALLBACK2
void(* MHD_UpgradeHandler)(void *cls, struct MHD_Connection *connection, void *con_cls, const char *extra_in, size_t extra_in_size, MHD_socket sock, struct MHD_UpgradeResponseHandle *urh)
@ MHD_OPTION_CONNECTION_MEMORY_INCREMENT
@ MHD_OPTION_HTTPS_CRED_TYPE
@ MHD_OPTION_URI_LOG_CALLBACK
@ MHD_OPTION_HTTPS_CERT_CALLBACK2
@ MHD_OPTION_UNESCAPE_CALLBACK
@ MHD_OPTION_EXTERNAL_LOGGER
@ MHD_OPTION_LISTEN_BACKLOG_SIZE
@ MHD_OPTION_HTTPS_PRIORITIES
@ MHD_OPTION_HTTPS_MEM_DHPARAMS
@ MHD_OPTION_NOTIFY_CONNECTION
@ MHD_OPTION_LISTENING_ADDRESS_REUSE
@ MHD_OPTION_THREAD_POOL_SIZE
@ MHD_OPTION_CONNECTION_LIMIT
@ MHD_OPTION_PER_IP_CONNECTION_LIMIT
@ MHD_OPTION_TCP_FASTOPEN_QUEUE_SIZE
@ MHD_OPTION_HTTPS_MEM_CERT
@ MHD_OPTION_SERVER_INSANITY
@ MHD_OPTION_LISTEN_SOCKET
@ MHD_OPTION_HTTPS_MEM_KEY
@ MHD_OPTION_DIGEST_AUTH_RANDOM
@ MHD_OPTION_HTTPS_KEY_PASSWORD
@ MHD_OPTION_NONCE_NC_SIZE
@ MHD_OPTION_CONNECTION_MEMORY_LIMIT
@ MHD_OPTION_THREAD_STACK_SIZE
@ MHD_OPTION_STRICT_FOR_CLIENT
@ MHD_OPTION_CONNECTION_TIMEOUT
@ MHD_OPTION_GNUTLS_PSK_CRED_HANDLER
@ MHD_OPTION_HTTPS_MEM_TRUST
@ MHD_OPTION_HTTPS_CERT_CALLBACK
@ MHD_OPTION_NOTIFY_COMPLETED
#define MHD_RESPONSE_HEADER_KIND
_MHD_EXTERN struct MHD_Response * MHD_create_response_for_upgrade(MHD_UpgradeHandler upgrade_handler, void *upgrade_handler_cls)
enum MHD_Result(* MHD_AcceptPolicyCallback)(void *cls, const struct sockaddr *addr, socklen_t addrlen)
#define MHD_create_response_from_fd_at_offset(size, fd, offset)
#define MHD_UNSIGNED_LONG_LONG
#define _MHD_DEPR_MACRO(msg)
_MHD_EXTERN void MHD_resume_connection(struct MHD_Connection *connection)
_MHD_EXTERN size_t MHD_http_unescape(char *val)
ssize_t(* MHD_ContentReaderCallback)(void *cls, uint64_t pos, char *buf, size_t max)
#define _MHD_DEPR_FUNC(msg)
enum MHD_Result(* MHD_PostDataIterator)(void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *data, uint64_t off, size_t size)
enum MHD_Result(* MHD_AccessHandlerCallback)(void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls)
@ MHD_UPGRADE_ACTION_CORK_ON
@ MHD_UPGRADE_ACTION_CLOSE
@ MHD_UPGRADE_ACTION_CORK_OFF
int(* MHD_PskServerCredentialsCallback)(void *cls, const struct MHD_Connection *connection, const char *username, void **psk, size_t *psk_size)
_MHD_EXTERN const char * MHD_get_reason_phrase_for(unsigned int code)
@ MHD_DAEMON_INFO_MAC_KEY_SIZE
@ MHD_DAEMON_INFO_EPOLL_FD_LINUX_ONLY
@ MHD_DAEMON_INFO_BIND_PORT
@ MHD_DAEMON_INFO_EPOLL_FD
@ MHD_DAEMON_INFO_KEY_SIZE
@ MHD_DAEMON_INFO_CURRENT_CONNECTIONS
@ MHD_DAEMON_INFO_LISTEN_FD
MHD_FLAG
Flags for the struct MHD_Daemon.
@ MHD_ALLOW_SUSPEND_RESUME
@ MHD_USE_THREAD_PER_CONNECTION
@ MHD_USE_EPOLL_INTERNALLY
@ MHD_USE_EPOLL_LINUX_ONLY
@ MHD_SUPPRESS_DATE_NO_CLOCK
@ MHD_USE_POST_HANDSHAKE_AUTH_SUPPORT
@ MHD_USE_SUPPRESS_DATE_NO_CLOCK
@ MHD_USE_POLL_INTERNAL_THREAD
@ MHD_USE_SELECT_INTERNALLY
@ MHD_USE_EPOLL_INTERNAL_THREAD
@ MHD_USE_PIPE_FOR_SHUTDOWN
@ MHD_USE_AUTO_INTERNAL_THREAD
@ MHD_USE_INSECURE_TLS_EARLY_DATA
@ MHD_USE_POLL_INTERNALLY
@ MHD_USE_NO_LISTEN_SOCKET
@ MHD_USE_PEDANTIC_CHECKS
@ MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY
@ MHD_USE_INTERNAL_POLLING_THREAD
@ MHD_RF_HTTP_VERSION_1_0_RESPONSE
@ MHD_RF_INSANITY_HEADER_CONTENT_LENGTH
@ MHD_RF_HTTP_VERSION_1_0_ONLY
_MHD_EXTERN enum MHD_Result MHD_set_response_options(struct MHD_Response *response, enum MHD_ResponseFlags flags,...)
_MHD_EXTERN void MHD_free(void *ptr)
_MHD_EXTERN enum MHD_Result MHD_upgrade_action(struct MHD_UpgradeResponseHandle *urh, enum MHD_UpgradeAction action,...)
_MHD_EXTERN void MHD_suspend_connection(struct MHD_Connection *connection)
#define MHD_MD5_DIGEST_SIZE
@ MHD_CONNECTION_OPTION_TIMEOUT
MHD_AcceptPolicyCallback apc
MHD_ContentReaderFreeCallback crfc
MHD_ContentReaderCallback crc
unsigned int connection_timeout
struct MHD_Daemon * daemon
struct sockaddr * client_addr
unsigned int num_connections