Go to the documentation of this file.
79 #ifndef MHD_MICROHTTPD_H
80 #define MHD_MICROHTTPD_H
98 #ifndef MHD_PLATFORM_H
99 #if defined(_WIN32) && ! defined(__CYGWIN__) && \
100 ! defined(_CRT_DECLARE_NONSTDC_NAMES)
101 #define _CRT_DECLARE_NONSTDC_NAMES 1
105 #include <sys/types.h>
106 #if ! defined(_WIN32) || defined(__CYGWIN__)
108 #include <sys/time.h>
109 #include <sys/socket.h>
112 #define _CRT_DECLARE_NONSTDC_NAMES 1
113 #include <ws2tcpip.h>
114 #if defined(_MSC_FULL_VER) && ! defined (_SSIZE_T_DEFINED)
115 #define _SSIZE_T_DEFINED
116 typedef intptr_t ssize_t;
121 #if defined(__CYGWIN__) && ! defined(_SYS_TYPES_FD_SET)
123 #error Cygwin with winsock fd_set is not supported
133 #define MHD_VERSION 0x00097300
156 #define MHD_INVALID_NONCE -1
163 #define MHD_SIZE_UNKNOWN UINT64_MAX
165 #define MHD_SIZE_UNKNOWN ((uint64_t) -1LL)
169 #define MHD_CONTENT_READER_END_OF_STREAM SIZE_MAX
170 #define MHD_CONTENT_READER_END_WITH_ERROR (SIZE_MAX - 1)
172 #define MHD_CONTENT_READER_END_OF_STREAM ((size_t) -1LL)
173 #define MHD_CONTENT_READER_END_WITH_ERROR (((size_t) -1LL) - 1)
177 #if defined(_WIN32) && defined(MHD_W32LIB)
178 #define _MHD_EXTERN extern
179 #elif defined (_WIN32) && defined(MHD_W32DLL)
181 #define _MHD_EXTERN __declspec(dllimport)
183 #define _MHD_EXTERN extern
187 #ifndef MHD_SOCKET_DEFINED
191 #if ! defined(_WIN32) || defined(_SYS_TYPES_FD_SET)
192 #define MHD_POSIX_SOCKETS 1
194 #define MHD_INVALID_SOCKET (-1)
196 #define MHD_WINSOCK_SOCKETS 1
197 #include <winsock2.h>
199 #define MHD_INVALID_SOCKET (INVALID_SOCKET)
201 #define MHD_SOCKET_DEFINED 1
207 #ifdef MHD_NO_DEPRECATION
208 #define _MHD_DEPR_MACRO(msg)
209 #define _MHD_NO_DEPR_IN_MACRO 1
210 #define _MHD_DEPR_IN_MACRO(msg)
211 #define _MHD_NO_DEPR_FUNC 1
212 #define _MHD_DEPR_FUNC(msg)
215 #ifndef _MHD_DEPR_MACRO
216 #if defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1500
219 #define _MHD_INSTRMACRO(a) #a
220 #define _MHD_STRMACRO(a) _MHD_INSTRMACRO (a)
222 #define _MHD_DEPR_MACRO(msg) __pragma(message (__FILE__ "(" _MHD_STRMACRO ( \
223 __LINE__) "): warning: " msg))
224 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
225 #elif defined(__clang__) || defined (__GNUC_PATCHLEVEL__)
227 #define _MHD_GCC_PRAG(x) _Pragma(#x)
228 #if (defined(__clang__) && (__clang_major__ + 0 >= 5 || \
229 (! defined(__apple_build_version__) && \
230 (__clang_major__ + 0 > 3 || (__clang_major__ + 0 == 3 && __clang_minor__ >= \
232 __GNUC__ + 0 > 4 || (__GNUC__ + 0 == 4 && __GNUC_MINOR__ + 0 >= 8)
235 #define _MHD_DEPR_MACRO(msg) _MHD_GCC_PRAG (GCC warning msg)
236 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
239 #define _MHD_DEPR_MACRO(msg) _MHD_GCC_PRAG (message msg)
240 #if (defined(__clang__) && (__clang_major__ + 0 > 2 || (__clang_major__ + 0 == \
241 2 && __clang_minor__ >= \
244 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
251 #ifndef _MHD_DEPR_MACRO
252 #define _MHD_DEPR_MACRO(msg)
255 #ifndef _MHD_DEPR_IN_MACRO
256 #define _MHD_NO_DEPR_IN_MACRO 1
257 #define _MHD_DEPR_IN_MACRO(msg)
260 #ifndef _MHD_DEPR_FUNC
261 #if defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1400
263 #define _MHD_DEPR_FUNC(msg) __declspec(deprecated (msg))
264 #elif defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1310
266 #define _MHD_DEPR_FUNC(msg) __declspec(deprecated)
267 #elif (__GNUC__ + 0 >= 5) || (defined (__clang__) && \
268 (__clang_major__ + 0 > 2 || (__clang_major__ + 0 == 2 && __clang_minor__ >= \
271 #define _MHD_DEPR_FUNC(msg) __attribute__((deprecated (msg)))
272 #elif defined (__clang__) || __GNUC__ + 0 > 3 || (__GNUC__ + 0 == 3 && \
273 __GNUC_MINOR__ + 0 >= 1)
276 #define _MHD_DEPR_FUNC(msg) __attribute__((__deprecated__))
281 #ifndef _MHD_DEPR_FUNC
282 #define _MHD_NO_DEPR_FUNC 1
283 #define _MHD_DEPR_FUNC(msg)
291 #ifndef MHD_LONG_LONG
295 #define MHD_LONG_LONG long long
296 #define MHD_UNSIGNED_LONG_LONG unsigned long long
299 "Macro MHD_LONG_LONG is deprecated, use MHD_UNSIGNED_LONG_LONG")
305 #ifndef MHD_LONG_LONG_PRINTF
309 #define MHD_LONG_LONG_PRINTF "ll"
310 #define MHD_UNSIGNED_LONG_LONG_PRINTF "%llu"
313 "Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG_LONG_PRINTF")
320 #define MHD_MD5_DIGEST_SIZE 16
332 #define MHD_HTTP_CONTINUE 100
334 #define MHD_HTTP_SWITCHING_PROTOCOLS 101
336 #define MHD_HTTP_PROCESSING 102
338 #define MHD_HTTP_EARLY_HINTS 103
341 #define MHD_HTTP_OK 200
343 #define MHD_HTTP_CREATED 201
345 #define MHD_HTTP_ACCEPTED 202
347 #define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION 203
349 #define MHD_HTTP_NO_CONTENT 204
351 #define MHD_HTTP_RESET_CONTENT 205
353 #define MHD_HTTP_PARTIAL_CONTENT 206
355 #define MHD_HTTP_MULTI_STATUS 207
357 #define MHD_HTTP_ALREADY_REPORTED 208
360 #define MHD_HTTP_IM_USED 226
363 #define MHD_HTTP_MULTIPLE_CHOICES 300
365 #define MHD_HTTP_MOVED_PERMANENTLY 301
367 #define MHD_HTTP_FOUND 302
369 #define MHD_HTTP_SEE_OTHER 303
371 #define MHD_HTTP_NOT_MODIFIED 304
373 #define MHD_HTTP_USE_PROXY 305
375 #define MHD_HTTP_SWITCH_PROXY 306
377 #define MHD_HTTP_TEMPORARY_REDIRECT 307
379 #define MHD_HTTP_PERMANENT_REDIRECT 308
382 #define MHD_HTTP_BAD_REQUEST 400
384 #define MHD_HTTP_UNAUTHORIZED 401
386 #define MHD_HTTP_PAYMENT_REQUIRED 402
388 #define MHD_HTTP_FORBIDDEN 403
390 #define MHD_HTTP_NOT_FOUND 404
392 #define MHD_HTTP_METHOD_NOT_ALLOWED 405
394 #define MHD_HTTP_NOT_ACCEPTABLE 406
396 #define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED 407
398 #define MHD_HTTP_REQUEST_TIMEOUT 408
400 #define MHD_HTTP_CONFLICT 409
402 #define MHD_HTTP_GONE 410
404 #define MHD_HTTP_LENGTH_REQUIRED 411
406 #define MHD_HTTP_PRECONDITION_FAILED 412
408 #define MHD_HTTP_PAYLOAD_TOO_LARGE 413
410 #define MHD_HTTP_URI_TOO_LONG 414
412 #define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE 415
414 #define MHD_HTTP_RANGE_NOT_SATISFIABLE 416
416 #define MHD_HTTP_EXPECTATION_FAILED 417
419 #define MHD_HTTP_MISDIRECTED_REQUEST 421
421 #define MHD_HTTP_UNPROCESSABLE_ENTITY 422
423 #define MHD_HTTP_LOCKED 423
425 #define MHD_HTTP_FAILED_DEPENDENCY 424
427 #define MHD_HTTP_TOO_EARLY 425
429 #define MHD_HTTP_UPGRADE_REQUIRED 426
432 #define MHD_HTTP_PRECONDITION_REQUIRED 428
434 #define MHD_HTTP_TOO_MANY_REQUESTS 429
437 #define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
440 #define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451
443 #define MHD_HTTP_INTERNAL_SERVER_ERROR 500
445 #define MHD_HTTP_NOT_IMPLEMENTED 501
447 #define MHD_HTTP_BAD_GATEWAY 502
449 #define MHD_HTTP_SERVICE_UNAVAILABLE 503
451 #define MHD_HTTP_GATEWAY_TIMEOUT 504
453 #define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED 505
455 #define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506
457 #define MHD_HTTP_INSUFFICIENT_STORAGE 507
459 #define MHD_HTTP_LOOP_DETECTED 508
462 #define MHD_HTTP_NOT_EXTENDED 510
464 #define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED 511
469 #define MHD_HTTP_RETRY_WITH 449
472 #define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS 450
475 #define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED 509
480 #define MHD_HTTP_METHOD_NOT_ACCEPTABLE \
481 _MHD_DEPR_IN_MACRO ( \
482 "Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE") \
486 #define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE \
487 _MHD_DEPR_IN_MACRO ( \
488 "Value MHD_HTTP_REQUEST_ENTITY_TOO_LARGE is deprecated, use MHD_HTTP_PAYLOAD_TOO_LARGE") \
492 #define MHD_HTTP_REQUEST_URI_TOO_LONG \
493 _MHD_DEPR_IN_MACRO ( \
494 "Value MHD_HTTP_REQUEST_URI_TOO_LONG is deprecated, use MHD_HTTP_URI_TOO_LONG") \
498 #define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE \
499 _MHD_DEPR_IN_MACRO ( \
500 "Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE") \
504 #define MHD_HTTP_UNORDERED_COLLECTION \
505 _MHD_DEPR_IN_MACRO ( \
506 "Value MHD_HTTP_UNORDERED_COLLECTION is deprecated as it was removed from RFC") \
510 #define MHD_HTTP_NO_RESPONSE \
511 _MHD_DEPR_IN_MACRO ( \
512 "Value MHD_HTTP_NO_RESPONSE is deprecated as it is nginx internal code for logs only") \
534 #define MHD_ICY_FLAG ((uint32_t) (((uint32_t) 1) << 31))
546 #define MHD_HTTP_HEADER_ACCEPT "Accept"
548 #define MHD_HTTP_HEADER_ACCEPT_CHARSET "Accept-Charset"
550 #define MHD_HTTP_HEADER_ACCEPT_ENCODING "Accept-Encoding"
552 #define MHD_HTTP_HEADER_ACCEPT_LANGUAGE "Accept-Language"
554 #define MHD_HTTP_HEADER_ACCEPT_RANGES "Accept-Ranges"
556 #define MHD_HTTP_HEADER_AGE "Age"
558 #define MHD_HTTP_HEADER_ALLOW "Allow"
560 #define MHD_HTTP_HEADER_AUTHORIZATION "Authorization"
562 #define MHD_HTTP_HEADER_CACHE_CONTROL "Cache-Control"
564 #define MHD_HTTP_HEADER_CLOSE "Close"
566 #define MHD_HTTP_HEADER_CONNECTION "Connection"
568 #define MHD_HTTP_HEADER_CONTENT_ENCODING "Content-Encoding"
570 #define MHD_HTTP_HEADER_CONTENT_LANGUAGE "Content-Language"
572 #define MHD_HTTP_HEADER_CONTENT_LENGTH "Content-Length"
574 #define MHD_HTTP_HEADER_CONTENT_LOCATION "Content-Location"
576 #define MHD_HTTP_HEADER_CONTENT_RANGE "Content-Range"
578 #define MHD_HTTP_HEADER_CONTENT_TYPE "Content-Type"
580 #define MHD_HTTP_HEADER_DATE "Date"
582 #define MHD_HTTP_HEADER_ETAG "ETag"
584 #define MHD_HTTP_HEADER_EXPECT "Expect"
586 #define MHD_HTTP_HEADER_EXPIRES "Expires"
588 #define MHD_HTTP_HEADER_FROM "From"
590 #define MHD_HTTP_HEADER_HOST "Host"
592 #define MHD_HTTP_HEADER_IF_MATCH "If-Match"
594 #define MHD_HTTP_HEADER_IF_MODIFIED_SINCE "If-Modified-Since"
596 #define MHD_HTTP_HEADER_IF_NONE_MATCH "If-None-Match"
598 #define MHD_HTTP_HEADER_IF_RANGE "If-Range"
600 #define MHD_HTTP_HEADER_IF_UNMODIFIED_SINCE "If-Unmodified-Since"
602 #define MHD_HTTP_HEADER_LAST_MODIFIED "Last-Modified"
604 #define MHD_HTTP_HEADER_LOCATION "Location"
606 #define MHD_HTTP_HEADER_MAX_FORWARDS "Max-Forwards"
608 #define MHD_HTTP_HEADER_MIME_VERSION "MIME-Version"
610 #define MHD_HTTP_HEADER_PRAGMA "Pragma"
612 #define MHD_HTTP_HEADER_PROXY_AUTHENTICATE "Proxy-Authenticate"
614 #define MHD_HTTP_HEADER_PROXY_AUTHORIZATION "Proxy-Authorization"
616 #define MHD_HTTP_HEADER_RANGE "Range"
618 #define MHD_HTTP_HEADER_REFERER "Referer"
620 #define MHD_HTTP_HEADER_RETRY_AFTER "Retry-After"
622 #define MHD_HTTP_HEADER_SERVER "Server"
624 #define MHD_HTTP_HEADER_TE "TE"
626 #define MHD_HTTP_HEADER_TRAILER "Trailer"
628 #define MHD_HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding"
630 #define MHD_HTTP_HEADER_UPGRADE "Upgrade"
632 #define MHD_HTTP_HEADER_USER_AGENT "User-Agent"
634 #define MHD_HTTP_HEADER_VARY "Vary"
636 #define MHD_HTTP_HEADER_VIA "Via"
638 #define MHD_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate"
640 #define MHD_HTTP_HEADER_WARNING "Warning"
644 #define MHD_HTTP_HEADER_A_IM "A-IM"
646 #define MHD_HTTP_HEADER_ACCEPT_ADDITIONS "Accept-Additions"
648 #define MHD_HTTP_HEADER_ACCEPT_CH "Accept-CH"
650 #define MHD_HTTP_HEADER_ACCEPT_DATETIME "Accept-Datetime"
652 #define MHD_HTTP_HEADER_ACCEPT_FEATURES "Accept-Features"
654 #define MHD_HTTP_HEADER_ACCEPT_PATCH "Accept-Patch"
656 #define MHD_HTTP_HEADER_ACCEPT_POST "Accept-Post"
658 #define MHD_HTTP_HEADER_ALPN "ALPN"
660 #define MHD_HTTP_HEADER_ALT_SVC "Alt-Svc"
662 #define MHD_HTTP_HEADER_ALT_USED "Alt-Used"
664 #define MHD_HTTP_HEADER_ALTERNATES "Alternates"
666 #define MHD_HTTP_HEADER_APPLY_TO_REDIRECT_REF "Apply-To-Redirect-Ref"
668 #define MHD_HTTP_HEADER_AUTHENTICATION_CONTROL "Authentication-Control"
670 #define MHD_HTTP_HEADER_AUTHENTICATION_INFO "Authentication-Info"
672 #define MHD_HTTP_HEADER_C_EXT "C-Ext"
674 #define MHD_HTTP_HEADER_C_MAN "C-Man"
676 #define MHD_HTTP_HEADER_C_OPT "C-Opt"
678 #define MHD_HTTP_HEADER_C_PEP "C-PEP"
680 #define MHD_HTTP_HEADER_C_PEP_INFO "C-PEP-Info"
682 #define MHD_HTTP_HEADER_CAL_MANAGED_ID "Cal-Managed-ID"
684 #define MHD_HTTP_HEADER_CALDAV_TIMEZONES "CalDAV-Timezones"
686 #define MHD_HTTP_HEADER_CDN_LOOP "CDN-Loop"
688 #define MHD_HTTP_HEADER_CERT_NOT_AFTER "Cert-Not-After"
690 #define MHD_HTTP_HEADER_CERT_NOT_BEFORE "Cert-Not-Before"
692 #define MHD_HTTP_HEADER_CONTENT_BASE "Content-Base"
694 #define MHD_HTTP_HEADER_CONTENT_DISPOSITION "Content-Disposition"
696 #define MHD_HTTP_HEADER_CONTENT_ID "Content-ID"
698 #define MHD_HTTP_HEADER_CONTENT_MD5 "Content-MD5"
700 #define MHD_HTTP_HEADER_CONTENT_SCRIPT_TYPE "Content-Script-Type"
702 #define MHD_HTTP_HEADER_CONTENT_STYLE_TYPE "Content-Style-Type"
704 #define MHD_HTTP_HEADER_CONTENT_VERSION "Content-Version"
706 #define MHD_HTTP_HEADER_COOKIE "Cookie"
708 #define MHD_HTTP_HEADER_COOKIE2 "Cookie2"
710 #define MHD_HTTP_HEADER_DASL "DASL"
712 #define MHD_HTTP_HEADER_DAV "DAV"
714 #define MHD_HTTP_HEADER_DEFAULT_STYLE "Default-Style"
716 #define MHD_HTTP_HEADER_DELTA_BASE "Delta-Base"
718 #define MHD_HTTP_HEADER_DEPTH "Depth"
720 #define MHD_HTTP_HEADER_DERIVED_FROM "Derived-From"
722 #define MHD_HTTP_HEADER_DESTINATION "Destination"
724 #define MHD_HTTP_HEADER_DIFFERENTIAL_ID "Differential-ID"
726 #define MHD_HTTP_HEADER_DIGEST "Digest"
728 #define MHD_HTTP_HEADER_EARLY_DATA "Early-Data"
730 #define MHD_HTTP_HEADER_EXPECT_CT "Expect-CT"
732 #define MHD_HTTP_HEADER_EXT "Ext"
734 #define MHD_HTTP_HEADER_FORWARDED "Forwarded"
736 #define MHD_HTTP_HEADER_GETPROFILE "GetProfile"
738 #define MHD_HTTP_HEADER_HOBAREG "Hobareg"
740 #define MHD_HTTP_HEADER_HTTP2_SETTINGS "HTTP2-Settings"
742 #define MHD_HTTP_HEADER_IM "IM"
744 #define MHD_HTTP_HEADER_IF "If"
746 #define MHD_HTTP_HEADER_IF_SCHEDULE_TAG_MATCH "If-Schedule-Tag-Match"
748 #define MHD_HTTP_HEADER_INCLUDE_REFERRED_TOKEN_BINDING_ID \
749 "Include-Referred-Token-Binding-ID"
751 #define MHD_HTTP_HEADER_KEEP_ALIVE "Keep-Alive"
753 #define MHD_HTTP_HEADER_LABEL "Label"
755 #define MHD_HTTP_HEADER_LINK "Link"
757 #define MHD_HTTP_HEADER_LOCK_TOKEN "Lock-Token"
759 #define MHD_HTTP_HEADER_MAN "Man"
761 #define MHD_HTTP_HEADER_MEMENTO_DATETIME "Memento-Datetime"
763 #define MHD_HTTP_HEADER_METER "Meter"
765 #define MHD_HTTP_HEADER_NEGOTIATE "Negotiate"
767 #define MHD_HTTP_HEADER_ODATA_ENTITYID "OData-EntityId"
769 #define MHD_HTTP_HEADER_ODATA_ISOLATION "OData-Isolation"
771 #define MHD_HTTP_HEADER_ODATA_MAXVERSION "OData-MaxVersion"
773 #define MHD_HTTP_HEADER_ODATA_VERSION "OData-Version"
775 #define MHD_HTTP_HEADER_OPT "Opt"
777 #define MHD_HTTP_HEADER_OPTIONAL_WWW_AUTHENTICATE "Optional-WWW-Authenticate"
779 #define MHD_HTTP_HEADER_ORDERING_TYPE "Ordering-Type"
781 #define MHD_HTTP_HEADER_ORIGIN "Origin"
783 #define MHD_HTTP_HEADER_OSCORE "OSCORE"
785 #define MHD_HTTP_HEADER_OVERWRITE "Overwrite"
787 #define MHD_HTTP_HEADER_P3P "P3P"
789 #define MHD_HTTP_HEADER_PEP "PEP"
791 #define MHD_HTTP_HEADER_PICS_LABEL "PICS-Label"
793 #define MHD_HTTP_HEADER_PEP_INFO "Pep-Info"
795 #define MHD_HTTP_HEADER_POSITION "Position"
797 #define MHD_HTTP_HEADER_PREFER "Prefer"
799 #define MHD_HTTP_HEADER_PREFERENCE_APPLIED "Preference-Applied"
801 #define MHD_HTTP_HEADER_PROFILEOBJECT "ProfileObject"
803 #define MHD_HTTP_HEADER_PROTOCOL "Protocol"
805 #define MHD_HTTP_HEADER_PROTOCOL_INFO "Protocol-Info"
807 #define MHD_HTTP_HEADER_PROTOCOL_QUERY "Protocol-Query"
809 #define MHD_HTTP_HEADER_PROTOCOL_REQUEST "Protocol-Request"
811 #define MHD_HTTP_HEADER_PROXY_AUTHENTICATION_INFO "Proxy-Authentication-Info"
813 #define MHD_HTTP_HEADER_PROXY_FEATURES "Proxy-Features"
815 #define MHD_HTTP_HEADER_PROXY_INSTRUCTION "Proxy-Instruction"
817 #define MHD_HTTP_HEADER_PUBLIC "Public"
819 #define MHD_HTTP_HEADER_PUBLIC_KEY_PINS "Public-Key-Pins"
821 #define MHD_HTTP_HEADER_PUBLIC_KEY_PINS_REPORT_ONLY \
822 "Public-Key-Pins-Report-Only"
824 #define MHD_HTTP_HEADER_REDIRECT_REF "Redirect-Ref"
826 #define MHD_HTTP_HEADER_REPLAY_NONCE "Replay-Nonce"
828 #define MHD_HTTP_HEADER_SAFE "Safe"
830 #define MHD_HTTP_HEADER_SCHEDULE_REPLY "Schedule-Reply"
832 #define MHD_HTTP_HEADER_SCHEDULE_TAG "Schedule-Tag"
834 #define MHD_HTTP_HEADER_SEC_TOKEN_BINDING "Sec-Token-Binding"
836 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_ACCEPT "Sec-WebSocket-Accept"
838 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_EXTENSIONS "Sec-WebSocket-Extensions"
840 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_KEY "Sec-WebSocket-Key"
842 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_PROTOCOL "Sec-WebSocket-Protocol"
844 #define MHD_HTTP_HEADER_SEC_WEBSOCKET_VERSION "Sec-WebSocket-Version"
846 #define MHD_HTTP_HEADER_SECURITY_SCHEME "Security-Scheme"
848 #define MHD_HTTP_HEADER_SET_COOKIE "Set-Cookie"
850 #define MHD_HTTP_HEADER_SET_COOKIE2 "Set-Cookie2"
852 #define MHD_HTTP_HEADER_SETPROFILE "SetProfile"
854 #define MHD_HTTP_HEADER_SLUG "SLUG"
856 #define MHD_HTTP_HEADER_SOAPACTION "SoapAction"
858 #define MHD_HTTP_HEADER_STATUS_URI "Status-URI"
860 #define MHD_HTTP_HEADER_STRICT_TRANSPORT_SECURITY "Strict-Transport-Security"
862 #define MHD_HTTP_HEADER_SUNSET "Sunset"
864 #define MHD_HTTP_HEADER_SURROGATE_CAPABILITY "Surrogate-Capability"
866 #define MHD_HTTP_HEADER_SURROGATE_CONTROL "Surrogate-Control"
868 #define MHD_HTTP_HEADER_TCN "TCN"
870 #define MHD_HTTP_HEADER_TIMEOUT "Timeout"
872 #define MHD_HTTP_HEADER_TOPIC "Topic"
874 #define MHD_HTTP_HEADER_TTL "TTL"
876 #define MHD_HTTP_HEADER_URGENCY "Urgency"
878 #define MHD_HTTP_HEADER_URI "URI"
880 #define MHD_HTTP_HEADER_VARIANT_VARY "Variant-Vary"
882 #define MHD_HTTP_HEADER_WANT_DIGEST "Want-Digest"
884 #define MHD_HTTP_HEADER_X_CONTENT_TYPE_OPTIONS "X-Content-Type-Options"
886 #define MHD_HTTP_HEADER_X_FRAME_OPTIONS "X-Frame-Options"
889 #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN \
890 "Access-Control-Allow-Origin"
899 #define MHD_HTTP_VERSION_1_0 "HTTP/1.0"
900 #define MHD_HTTP_VERSION_1_1 "HTTP/1.1"
914 #define MHD_HTTP_METHOD_CONNECT "CONNECT"
916 #define MHD_HTTP_METHOD_DELETE "DELETE"
918 #define MHD_HTTP_METHOD_GET "GET"
920 #define MHD_HTTP_METHOD_HEAD "HEAD"
922 #define MHD_HTTP_METHOD_OPTIONS "OPTIONS"
924 #define MHD_HTTP_METHOD_POST "POST"
926 #define MHD_HTTP_METHOD_PUT "PUT"
928 #define MHD_HTTP_METHOD_TRACE "TRACE"
932 #define MHD_HTTP_METHOD_ACL "ACL"
934 #define MHD_HTTP_METHOD_BASELINE_CONTROL "BASELINE-CONTROL"
936 #define MHD_HTTP_METHOD_BIND "BIND"
938 #define MHD_HTTP_METHOD_CHECKIN "CHECKIN"
940 #define MHD_HTTP_METHOD_CHECKOUT "CHECKOUT"
942 #define MHD_HTTP_METHOD_COPY "COPY"
944 #define MHD_HTTP_METHOD_LABEL "LABEL"
946 #define MHD_HTTP_METHOD_LINK "LINK"
948 #define MHD_HTTP_METHOD_LOCK "LOCK"
950 #define MHD_HTTP_METHOD_MERGE "MERGE"
952 #define MHD_HTTP_METHOD_MKACTIVITY "MKACTIVITY"
954 #define MHD_HTTP_METHOD_MKCALENDAR "MKCALENDAR"
956 #define MHD_HTTP_METHOD_MKCOL "MKCOL"
958 #define MHD_HTTP_METHOD_MKREDIRECTREF "MKREDIRECTREF"
960 #define MHD_HTTP_METHOD_MKWORKSPACE "MKWORKSPACE"
962 #define MHD_HTTP_METHOD_MOVE "MOVE"
964 #define MHD_HTTP_METHOD_ORDERPATCH "ORDERPATCH"
966 #define MHD_HTTP_METHOD_PATCH "PATCH"
968 #define MHD_HTTP_METHOD_PRI "PRI"
970 #define MHD_HTTP_METHOD_PROPFIND "PROPFIND"
972 #define MHD_HTTP_METHOD_PROPPATCH "PROPPATCH"
974 #define MHD_HTTP_METHOD_REBIND "REBIND"
976 #define MHD_HTTP_METHOD_REPORT "REPORT"
978 #define MHD_HTTP_METHOD_SEARCH "SEARCH"
980 #define MHD_HTTP_METHOD_UNBIND "UNBIND"
982 #define MHD_HTTP_METHOD_UNCHECKOUT "UNCHECKOUT"
984 #define MHD_HTTP_METHOD_UNLINK "UNLINK"
986 #define MHD_HTTP_METHOD_UNLOCK "UNLOCK"
988 #define MHD_HTTP_METHOD_UPDATE "UPDATE"
990 #define MHD_HTTP_METHOD_UPDATEREDIRECTREF "UPDATEREDIRECTREF"
992 #define MHD_HTTP_METHOD_VERSION_CONTROL "VERSION-CONTROL"
1001 #define MHD_HTTP_POST_ENCODING_FORM_URLENCODED \
1002 "application/x-www-form-urlencoded"
1003 #define MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA "multipart/form-data"
1034 struct MHD_PostProcessor;
1078 #define MHD_USE_SSL \
1079 _MHD_DEPR_IN_MACRO ("Value MHD_USE_SSL is deprecated, use MHD_USE_TLS") \
1103 #define MHD_USE_SELECT_INTERNALLY \
1104 _MHD_DEPR_IN_MACRO ( \
1105 "Value MHD_USE_SELECT_INTERNALLY is deprecated, use MHD_USE_INTERNAL_POLLING_THREAD instead") \
1106 MHD_USE_INTERNAL_POLLING_THREAD
1129 #define MHD_USE_PEDANTIC_CHECKS \
1130 _MHD_DEPR_IN_MACRO ( \
1131 "Flag MHD_USE_PEDANTIC_CHECKS is deprecated, use option MHD_OPTION_STRICT_FOR_CLIENT instead") \
1154 #define MHD_USE_POLL_INTERNALLY \
1155 _MHD_DEPR_IN_MACRO ( \
1156 "Value MHD_USE_POLL_INTERNALLY is deprecated, use MHD_USE_POLL_INTERNAL_THREAD instead") \
1157 MHD_USE_POLL_INTERNAL_THREAD
1171 #define MHD_SUPPRESS_DATE_NO_CLOCK \
1172 _MHD_DEPR_IN_MACRO ( \
1173 "Value MHD_SUPPRESS_DATE_NO_CLOCK is deprecated, use MHD_USE_SUPPRESS_DATE_NO_CLOCK instead") \
1174 MHD_USE_SUPPRESS_DATE_NO_CLOCK
1198 #define MHD_USE_EPOLL_LINUX_ONLY \
1199 _MHD_DEPR_IN_MACRO ( \
1200 "Value MHD_USE_EPOLL_LINUX_ONLY is deprecated, use MHD_USE_EPOLL") \
1219 #define MHD_USE_EPOLL_INTERNALLY \
1220 _MHD_DEPR_IN_MACRO ( \
1221 "Value MHD_USE_EPOLL_INTERNALLY is deprecated, use MHD_USE_EPOLL_INTERNAL_THREAD") \
1222 MHD_USE_EPOLL_INTERNAL_THREAD
1224 #define MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY \
1225 _MHD_DEPR_IN_MACRO ( \
1226 "Value MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY is deprecated, use MHD_USE_EPOLL_INTERNAL_THREAD") \
1227 MHD_USE_EPOLL_INTERNAL_THREAD
1247 #define MHD_USE_PIPE_FOR_SHUTDOWN \
1248 _MHD_DEPR_IN_MACRO ( \
1249 "Value MHD_USE_PIPE_FOR_SHUTDOWN is deprecated, use MHD_USE_ITC") \
1269 #define MHD_USE_EPOLL_TURBO \
1270 _MHD_DEPR_IN_MACRO ( \
1271 "Value MHD_USE_EPOLL_TURBO is deprecated, use MHD_USE_TURBO") \
1284 #define MHD_USE_SUSPEND_RESUME \
1285 _MHD_DEPR_IN_MACRO ( \
1286 "Value MHD_USE_SUSPEND_RESUME is deprecated, use MHD_ALLOW_SUSPEND_RESUME instead") \
1287 MHD_ALLOW_SUSPEND_RESUME
1369 const char *username,
1807 #define MHD_RESPONSE_HEADER_KIND \
1808 _MHD_DEPR_IN_MACRO ( \
1809 "Value MHD_RESPONSE_HEADER_KIND is deprecated and not used") \
1810 MHD_RESPONSE_HEADER_KIND
2171 const char *reason);
2183 const struct sockaddr *addr,
2232 const char *upload_data,
2233 size_t *upload_data_size,
2418 const char *filename,
2419 const char *content_type,
2420 const char *transfer_encoding,
2547 const struct sockaddr *addr,
2582 fd_set *read_fd_set,
2583 fd_set *write_fd_set,
2584 fd_set *except_fd_set,
2622 fd_set *read_fd_set,
2623 fd_set *write_fd_set,
2624 fd_set *except_fd_set,
2626 unsigned int fd_setsize);
2653 #define MHD_get_fdset(daemon,read_fd_set,write_fd_set,except_fd_set,max_fd) \
2654 MHD_get_fdset2 ((daemon),(read_fd_set),(write_fd_set),(except_fd_set), \
2655 (max_fd),FD_SETSIZE)
2762 const fd_set *read_fd_set,
2763 const fd_set *write_fd_set,
2764 const fd_set *except_fd_set);
2785 void *iterator_cls);
2805 void *iterator_cls);
2949 const char **value_ptr,
2950 size_t *value_size_ptr);
2966 unsigned int status_code,
3122 "MHD_create_response_from_data() is deprecated, use MHD_create_response_from_buffer()") \
3266 "Function MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \
3272 #if ! defined(_MHD_NO_DEPR_IN_MACRO) || defined(_MHD_NO_DEPR_FUNC)
3275 #define MHD_create_response_from_fd_at_offset(size,fd,offset) \
3276 _MHD_DEPR_IN_MACRO ( \
3277 "Usage of MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \
3278 MHD_create_response_from_fd_at_offset64 ((size),(fd),(offset))
3321 unsigned int iovcnt,
3360 struct MHD_UpgradeResponseHandle;
3432 const char *extra_in,
3433 size_t extra_in_size,
3435 struct MHD_UpgradeResponseHandle *urh);
3469 void *upgrade_handler_cls);
3498 const char *content);
3513 const char *content);
3528 const char *content);
3544 void *iterator_cls);
3608 const char *post_data,
3609 size_t post_data_len);
3634 #define MHD_INVALID_NONCE -1
3703 const char *username,
3704 const char *password,
3705 unsigned int nonce_timeout,
3730 const char *username,
3731 const char *password,
3732 unsigned int nonce_timeout);
3756 const char *username,
3757 const uint8_t *digest,
3759 unsigned int nonce_timeout,
3785 const char *username,
3787 unsigned int nonce_timeout);
@ MHD_USE_NO_LISTEN_SOCKET
_MHD_EXTERN const union MHD_DaemonInfo * MHD_get_daemon_info(struct MHD_Daemon *daemon, enum MHD_DaemonInfoType info_type,...)
_MHD_EXTERN struct MHD_PostProcessor * MHD_create_post_processor(struct MHD_Connection *connection, size_t buffer_size, MHD_PostDataIterator iter, void *iter_cls)
@ MHD_DAEMON_INFO_MAC_KEY_SIZE
@ MHD_OPTION_CONNECTION_LIMIT
@ MHD_OPTION_LISTEN_BACKLOG_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_EXTERN enum MHD_Result MHD_destroy_post_processor(struct MHD_PostProcessor *pp)
_MHD_EXTERN int MHD_get_response_headers(struct MHD_Response *response, MHD_KeyValueIterator iterator, void *iterator_cls)
@ MHD_CONNECTION_INFO_PROTOCOL
@ MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN
_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_OPTION_HTTPS_MEM_DHPARAMS
_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)
void(* MHD_ContentReaderFreeCallback)(void *cls)
@ MHD_RF_HTTP_VERSION_1_0_ONLY
MHD_AcceptPolicyCallback apc
@ MHD_CONNECTION_INFO_GNUTLS_SESSION
@ MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY
@ MHD_UPGRADE_ACTION_CLOSE
@ MHD_CONNECTION_OPTION_TIMEOUT
MHD_ContentReaderFreeCallback crfc
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)
@ MHD_REQUEST_TERMINATED_READ_ERROR
@ MHD_OPTION_HTTPS_KEY_PASSWORD
#define MHD_UNSIGNED_LONG_LONG
@ MHD_CONNECTION_INFO_CONNECTION_TIMEOUT
@ MHD_OPTION_DIGEST_AUTH_RANDOM
unsigned int num_connections
@ MHD_OPTION_PER_IP_CONNECTION_LIMIT
_MHD_EXTERN const char * MHD_get_reason_phrase_for(unsigned int code)
@ MHD_OPTION_NOTIFY_COMPLETED
@ MHD_OPTION_SERVER_INSANITY
_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)
MHD_FLAG
Flags for the struct MHD_Daemon.
@ MHD_DAEMON_INFO_CURRENT_CONNECTIONS
@ MHD_REQUEST_TERMINATED_COMPLETED_OK
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_fd64(uint64_t size, int fd)
@ MHD_FEATURE_HTTPS_CERT_CALLBACK
enum MHD_Result(* MHD_KeyValueIterator)(void *cls, enum MHD_ValueKind kind, const char *key, const char *value)
_MHD_EXTERN int MHD_get_connection_values(struct MHD_Connection *connection, enum MHD_ValueKind kind, MHD_KeyValueIterator iterator, void *iterator_cls)
@ MHD_OPTION_NONCE_NC_SIZE
_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 void MHD_set_panic_func(MHD_PanicCallback cb, void *cls)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_iovec(const struct MHD_IoVec *iov, unsigned int iovcnt, MHD_ContentReaderFreeCallback free_cb, void *cls)
struct MHD_Daemon * daemon
MHD_ContentReaderCallback crc
@ MHD_OPTION_TCP_FASTOPEN_QUEUE_SIZE
_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_OPTION_LISTENING_ADDRESS_REUSE
@ MHD_OPTION_SIGPIPE_HANDLED_BY_APP
@ MHD_FEATURE_POSTPROCESSOR
void(* MHD_RequestCompletedCallback)(void *cls, struct MHD_Connection *connection, void **con_cls, enum MHD_RequestTerminationCode toe)
_MHD_EXTERN MHD_socket MHD_quiesce_daemon(struct MHD_Daemon *daemon)
_MHD_EXTERN enum MHD_Result MHD_set_connection_option(struct MHD_Connection *connection, enum MHD_CONNECTION_OPTION option,...)
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 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_USE_INSECURE_TLS_EARLY_DATA
unsigned int connection_timeout
@ MHD_FEATURE_AUTODETECT_BIND_PORT
_MHD_EXTERN enum MHD_Result MHD_post_process(struct MHD_PostProcessor *pp, const char *post_data, size_t post_data_len)
_MHD_EXTERN void MHD_suspend_connection(struct MHD_Connection *connection)
@ MHD_RF_INSANITY_HEADER_CONTENT_LENGTH
@ MHD_FEATURE_TCP_FASTOPEN
@ MHD_USE_AUTO_INTERNAL_THREAD
@ MHD_OPTION_HTTPS_PRIORITIES
@ MHD_OPTION_THREAD_POOL_SIZE
#define MHD_MD5_DIGEST_SIZE
@ MHD_FEATURE_RESPONSES_SHARED_FD
@ MHD_OPTION_GNUTLS_PSK_CRED_HANDLER
@ MHD_RF_HTTP_VERSION_1_0_RESPONSE
_MHD_EXTERN enum MHD_Result MHD_add_connection(struct MHD_Daemon *daemon, MHD_socket client_socket, const struct sockaddr *addr, socklen_t addrlen)
enum MHD_Result(* MHD_AcceptPolicyCallback)(void *cls, const struct sockaddr *addr, socklen_t addrlen)
@ MHD_CONNECTION_INFO_CIPHER_ALGO
_MHD_EXTERN enum MHD_Result MHD_add_response_header(struct MHD_Response *response, const char *header, const char *content)
@ MHD_REQUEST_TERMINATED_CLIENT_ABORT
_MHD_EXTERN char * MHD_digest_auth_get_username(struct MHD_Connection *connection)
_MHD_EXTERN const union MHD_ConnectionInfo * MHD_get_connection_info(struct MHD_Connection *connection, enum MHD_ConnectionInfoType info_type,...)
_MHD_EXTERN void MHD_destroy_response(struct MHD_Response *response)
#define MHD_create_response_from_fd_at_offset(size, fd, offset)
_MHD_EXTERN const char * MHD_get_version(void)
_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 int MHD_get_connection_values_n(struct MHD_Connection *connection, enum MHD_ValueKind kind, MHD_KeyValueIteratorN iterator, void *iterator_cls)
_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)
ssize_t(* MHD_ContentReaderCallback)(void *cls, uint64_t pos, char *buf, size_t max)
_MHD_EXTERN enum MHD_Result MHD_upgrade_action(struct MHD_UpgradeResponseHandle *urh, enum MHD_UpgradeAction action,...)
@ MHD_OPTION_CONNECTION_MEMORY_INCREMENT
@ MHD_OPTION_HTTPS_CERT_CALLBACK2
void(* MHD_NotifyConnectionCallback)(void *cls, struct MHD_Connection *connection, void **socket_context, enum MHD_ConnectionNotificationCode toe)
@ MHD_FEATURE_AUTOSUPPRESS_SIGPIPE
_MHD_EXTERN char * MHD_basic_auth_get_username_password(struct MHD_Connection *connection, char **password)
@ MHD_OPTION_HTTPS_MEM_KEY
@ MHD_OPTION_LISTEN_SOCKET
struct MHD_Response * MHD_create_response_from_data(size_t size, void *data, int must_free, int must_copy)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_fd_at_offset64(uint64_t size, int fd, uint64_t offset)
@ MHD_OPTION_EXTERNAL_LOGGER
@ MHD_OPTION_UNESCAPE_CALLBACK
#define MHD_get_fdset(daemon, read_fd_set, write_fd_set, except_fd_set, max_fd)
@ MHD_DAEMON_INFO_LISTEN_FD
_MHD_EXTERN const char * MHD_lookup_connection_value(struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key)
@ MHD_USE_PIPE_FOR_SHUTDOWN
@ MHD_USE_EPOLL_INTERNAL_THREAD
@ MHD_CONNECTION_INFO_CONNECTION_SUSPENDED
void(* MHD_PanicCallback)(void *cls, const char *file, unsigned int line, const char *reason)
@ MHD_USE_SUPPRESS_DATE_NO_CLOCK
@ MHD_FEATURE_SHUTDOWN_LISTEN_SOCKET
@ MHD_DAEMON_INFO_KEY_SIZE
@ MHD_USE_INTERNAL_POLLING_THREAD
_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_EXTERN void MHD_stop_daemon(struct MHD_Daemon *daemon)
@ MHD_CONNECTION_NOTIFY_STARTED
@ MHD_USE_SELECT_INTERNALLY
@ MHD_OPTION_CONNECTION_MEMORY_LIMIT
@ MHD_DAEMON_INFO_EPOLL_FD_LINUX_ONLY
_MHD_EXTERN void MHD_free(void *ptr)
_MHD_EXTERN enum MHD_Result MHD_queue_response(struct MHD_Connection *connection, unsigned int status_code, struct MHD_Response *response)
_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_Response * MHD_create_response_for_upgrade(MHD_UpgradeHandler upgrade_handler, void *upgrade_handler_cls)
_MHD_EXTERN enum MHD_Result MHD_run(struct MHD_Daemon *daemon)
@ MHD_CONNECTION_INFO_CONNECTION_FD
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_pipe(int fd)
@ MHD_UPGRADE_ACTION_CORK_OFF
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)
#define _MHD_DEPR_MACRO(msg)
_MHD_EXTERN enum MHD_Result MHD_set_connection_value(struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key, const char *value)
@ MHD_USE_POLL_INTERNALLY
@ MHD_USE_PEDANTIC_CHECKS
@ MHD_USE_EPOLL_INTERNALLY
@ MHD_ALLOW_SUSPEND_RESUME
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_fd(size_t size, int fd)
@ MHD_USE_EPOLL_LINUX_ONLY
_MHD_EXTERN size_t MHD_http_unescape(char *val)
MHD_ConnectionNotificationCode
@ MHD_USE_POLL_INTERNAL_THREAD
@ MHD_FEATURE_HTTPS_KEY_PASSWORD
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_buffer(size_t size, void *buffer, enum MHD_ResponseMemoryMode mode)
_MHD_EXTERN void MHD_resume_connection(struct MHD_Connection *connection)
struct sockaddr * client_addr
_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_OPTION_HTTPS_CRED_TYPE
@ MHD_CONNECTION_INFO_GNUTLS_CLIENT_CERT
void(* MHD_LogCallback)(void *cls, const char *fm, va_list ap)
@ MHD_CONNECTION_INFO_CLIENT_ADDRESS
MHD_RequestTerminationCode
@ MHD_DAEMON_INFO_EPOLL_FD
@ MHD_DAEMON_INFO_BIND_PORT
_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_OPTION_HTTPS_MEM_TRUST
@ MHD_REQUEST_TERMINATED_WITH_ERROR
@ MHD_FEATURE_THREAD_NAMES
_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_Response * MHD_create_response_from_buffer_with_free_callback(size_t size, void *buffer, MHD_ContentReaderFreeCallback crfc)
_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_SUPPRESS_DATE_NO_CLOCK
@ MHD_FEATURE_HTTPS_CERT_CALLBACK2
@ MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE
@ MHD_USE_THREAD_PER_CONNECTION
@ MHD_UPGRADE_ACTION_CORK_ON
@ MHD_USE_POST_HANDSHAKE_AUTH_SUPPORT
@ MHD_FEATURE_DIGEST_AUTH
@ MHD_OPTION_STRICT_FOR_CLIENT
@ MHD_OPTION_URI_LOG_CALLBACK
@ MHD_REQUEST_TERMINATED_TIMEOUT_REACHED
#define MHD_RESPONSE_HEADER_KIND
@ MHD_OPTION_THREAD_STACK_SIZE
_MHD_EXTERN const char * MHD_get_response_header(struct MHD_Response *response, const char *key)
#define _MHD_DEPR_FUNC(msg)
@ MHD_OPTION_HTTPS_MEM_CERT
int(* MHD_PskServerCredentialsCallback)(void *cls, const struct MHD_Connection *connection, const char *username, void **psk, size_t *psk_size)
_MHD_EXTERN enum MHD_Result MHD_del_response_header(struct MHD_Response *response, const char *header, const char *content)
@ MHD_OPTION_CONNECTION_TIMEOUT
@ MHD_CONNECTION_INFO_DAEMON
_MHD_EXTERN enum MHD_Result MHD_run_wait(struct MHD_Daemon *daemon, int32_t millisec)
_MHD_EXTERN enum MHD_Result MHD_get_timeout(struct MHD_Daemon *daemon, MHD_UNSIGNED_LONG_LONG *timeout)
@ MHD_OPTION_HTTPS_CERT_CALLBACK
@ MHD_OPTION_NOTIFY_CONNECTION
@ MHD_CONNECTION_NOTIFY_CLOSED
_MHD_EXTERN enum MHD_Result MHD_is_feature_supported(enum MHD_FEATURE feature)
_MHD_EXTERN enum MHD_Result MHD_set_response_options(struct MHD_Response *response, enum MHD_ResponseFlags flags,...)
_MHD_EXTERN enum MHD_Result MHD_add_response_footer(struct MHD_Response *response, const char *footer, const char *content)
@ MHD_CONNECTION_INFO_SOCKET_CONTEXT