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__)
114#include <sys/socket.h>
117#define _CRT_DECLARE_NONSTDC_NAMES 1
119#if defined(_MSC_FULL_VER) && ! defined (_SSIZE_T_DEFINED)
120#define _SSIZE_T_DEFINED
121typedef intptr_t ssize_t;
126#if defined(__CYGWIN__) && ! defined(_SYS_TYPES_FD_SET)
128#error Cygwin with winsock fd_set is not supported
135#define MHD_VERSION 0x00097002
158#define MHD_INVALID_NONCE -1
165#define MHD_SIZE_UNKNOWN UINT64_MAX
167#define MHD_SIZE_UNKNOWN ((uint64_t) -1LL)
171#define MHD_CONTENT_READER_END_OF_STREAM SIZE_MAX
172#define MHD_CONTENT_READER_END_WITH_ERROR (SIZE_MAX - 1)
174#define MHD_CONTENT_READER_END_OF_STREAM ((size_t) -1LL)
175#define MHD_CONTENT_READER_END_WITH_ERROR (((size_t) -1LL) - 1)
179#if defined(_WIN32) && defined(MHD_W32LIB)
180#define _MHD_EXTERN extern
181#elif defined (_WIN32) && defined(MHD_W32DLL)
183#define _MHD_EXTERN __declspec(dllimport)
185#define _MHD_EXTERN extern
189#ifndef MHD_SOCKET_DEFINED
193#if ! defined(_WIN32) || defined(_SYS_TYPES_FD_SET)
194#define MHD_POSIX_SOCKETS 1
196#define MHD_INVALID_SOCKET (-1)
198#define MHD_WINSOCK_SOCKETS 1
201#define MHD_INVALID_SOCKET (INVALID_SOCKET)
203#define MHD_SOCKET_DEFINED 1
209#ifdef MHD_NO_DEPRECATION
210#define _MHD_DEPR_MACRO(msg)
211#define _MHD_NO_DEPR_IN_MACRO 1
212#define _MHD_DEPR_IN_MACRO(msg)
213#define _MHD_NO_DEPR_FUNC 1
214#define _MHD_DEPR_FUNC(msg)
217#ifndef _MHD_DEPR_MACRO
218#if defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1500
221#define _MHD_INSTRMACRO(a) #a
222#define _MHD_STRMACRO(a) _MHD_INSTRMACRO (a)
224#define _MHD_DEPR_MACRO(msg) __pragma (message (__FILE__ "(" _MHD_STRMACRO ( \
225 __LINE__) "): warning: " msg))
226#define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
227#elif defined(__clang__) || defined (__GNUC_PATCHLEVEL__)
229#define _MHD_GCC_PRAG(x) _Pragma (#x)
230#if (defined(__clang__) && (__clang_major__ + 0 >= 5 || \
231 (! defined(__apple_build_version__) && \
232 (__clang_major__ + 0 > 3 || (__clang_major__ + 0 == 3 && __clang_minor__ >= \
234 __GNUC__ + 0 > 4 || (__GNUC__ + 0 == 4 && __GNUC_MINOR__ + 0 >= 8)
237#define _MHD_DEPR_MACRO(msg) _MHD_GCC_PRAG (GCC warning msg)
238#define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
241#define _MHD_DEPR_MACRO(msg) _MHD_GCC_PRAG (message msg)
242#if (defined(__clang__) && (__clang_major__ + 0 > 2 || (__clang_major__ + 0 == \
243 2 && __clang_minor__ >= \
246#define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
253#ifndef _MHD_DEPR_MACRO
254#define _MHD_DEPR_MACRO(msg)
257#ifndef _MHD_DEPR_IN_MACRO
258#define _MHD_NO_DEPR_IN_MACRO 1
259#define _MHD_DEPR_IN_MACRO(msg)
262#ifndef _MHD_DEPR_FUNC
263#if defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1400
265#define _MHD_DEPR_FUNC(msg) __declspec(deprecated (msg))
266#elif defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1310
268#define _MHD_DEPR_FUNC(msg) __declspec(deprecated)
269#elif (__GNUC__ + 0 >= 5) || (defined (__clang__) && \
270 (__clang_major__ + 0 > 2 || (__clang_major__ + 0 == 2 && __clang_minor__ >= \
273#define _MHD_DEPR_FUNC(msg) __attribute__((deprecated (msg)))
274#elif defined (__clang__) || __GNUC__ + 0 > 3 || (__GNUC__ + 0 == 3 && \
275 __GNUC_MINOR__ + 0 >= 1)
278#define _MHD_DEPR_FUNC(msg) __attribute__((__deprecated__))
283#ifndef _MHD_DEPR_FUNC
284#define _MHD_NO_DEPR_FUNC 1
285#define _MHD_DEPR_FUNC(msg)
297#define MHD_LONG_LONG long long
298#define MHD_UNSIGNED_LONG_LONG unsigned long long
301 "Macro MHD_LONG_LONG is deprecated, use MHD_UNSIGNED_LONG_LONG")
307#ifndef MHD_LONG_LONG_PRINTF
311#define MHD_LONG_LONG_PRINTF "ll"
312#define MHD_UNSIGNED_LONG_LONG_PRINTF "%llu"
315 "Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG_LONG_PRINTF")
322#define MHD_MD5_DIGEST_SIZE 16
334#define MHD_HTTP_CONTINUE 100
336#define MHD_HTTP_SWITCHING_PROTOCOLS 101
338#define MHD_HTTP_PROCESSING 102
340#define MHD_HTTP_EARLY_HINTS 103
343#define MHD_HTTP_OK 200
345#define MHD_HTTP_CREATED 201
347#define MHD_HTTP_ACCEPTED 202
349#define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION 203
351#define MHD_HTTP_NO_CONTENT 204
353#define MHD_HTTP_RESET_CONTENT 205
355#define MHD_HTTP_PARTIAL_CONTENT 206
357#define MHD_HTTP_MULTI_STATUS 207
359#define MHD_HTTP_ALREADY_REPORTED 208
362#define MHD_HTTP_IM_USED 226
365#define MHD_HTTP_MULTIPLE_CHOICES 300
367#define MHD_HTTP_MOVED_PERMANENTLY 301
369#define MHD_HTTP_FOUND 302
371#define MHD_HTTP_SEE_OTHER 303
373#define MHD_HTTP_NOT_MODIFIED 304
375#define MHD_HTTP_USE_PROXY 305
377#define MHD_HTTP_SWITCH_PROXY 306
379#define MHD_HTTP_TEMPORARY_REDIRECT 307
381#define MHD_HTTP_PERMANENT_REDIRECT 308
384#define MHD_HTTP_BAD_REQUEST 400
386#define MHD_HTTP_UNAUTHORIZED 401
388#define MHD_HTTP_PAYMENT_REQUIRED 402
390#define MHD_HTTP_FORBIDDEN 403
392#define MHD_HTTP_NOT_FOUND 404
394#define MHD_HTTP_METHOD_NOT_ALLOWED 405
396#define MHD_HTTP_NOT_ACCEPTABLE 406
398#define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED 407
400#define MHD_HTTP_REQUEST_TIMEOUT 408
402#define MHD_HTTP_CONFLICT 409
404#define MHD_HTTP_GONE 410
406#define MHD_HTTP_LENGTH_REQUIRED 411
408#define MHD_HTTP_PRECONDITION_FAILED 412
410#define MHD_HTTP_PAYLOAD_TOO_LARGE 413
412#define MHD_HTTP_URI_TOO_LONG 414
414#define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE 415
416#define MHD_HTTP_RANGE_NOT_SATISFIABLE 416
418#define MHD_HTTP_EXPECTATION_FAILED 417
421#define MHD_HTTP_MISDIRECTED_REQUEST 421
423#define MHD_HTTP_UNPROCESSABLE_ENTITY 422
425#define MHD_HTTP_LOCKED 423
427#define MHD_HTTP_FAILED_DEPENDENCY 424
429#define MHD_HTTP_TOO_EARLY 425
431#define MHD_HTTP_UPGRADE_REQUIRED 426
434#define MHD_HTTP_PRECONDITION_REQUIRED 428
436#define MHD_HTTP_TOO_MANY_REQUESTS 429
439#define MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
442#define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451
445#define MHD_HTTP_INTERNAL_SERVER_ERROR 500
447#define MHD_HTTP_NOT_IMPLEMENTED 501
449#define MHD_HTTP_BAD_GATEWAY 502
451#define MHD_HTTP_SERVICE_UNAVAILABLE 503
453#define MHD_HTTP_GATEWAY_TIMEOUT 504
455#define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED 505
457#define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506
459#define MHD_HTTP_INSUFFICIENT_STORAGE 507
461#define MHD_HTTP_LOOP_DETECTED 508
464#define MHD_HTTP_NOT_EXTENDED 510
466#define MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED 511
471#define MHD_HTTP_RETRY_WITH 449
474#define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS 450
477#define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED 509
482#define MHD_HTTP_METHOD_NOT_ACCEPTABLE \
483 _MHD_DEPR_IN_MACRO ( \
484 "Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE") \
488#define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE \
489 _MHD_DEPR_IN_MACRO ( \
490 "Value MHD_HTTP_REQUEST_ENTITY_TOO_LARGE is deprecated, use MHD_HTTP_PAYLOAD_TOO_LARGE") \
494#define MHD_HTTP_REQUEST_URI_TOO_LONG \
495 _MHD_DEPR_IN_MACRO ( \
496 "Value MHD_HTTP_REQUEST_URI_TOO_LONG is deprecated, use MHD_HTTP_URI_TOO_LONG") \
500#define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE \
501 _MHD_DEPR_IN_MACRO ( \
502 "Value MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE is deprecated, use MHD_HTTP_RANGE_NOT_SATISFIABLE") \
506#define MHD_HTTP_UNORDERED_COLLECTION \
507 _MHD_DEPR_IN_MACRO ( \
508 "Value MHD_HTTP_UNORDERED_COLLECTION is deprecated as it was removed from RFC") \
512#define MHD_HTTP_NO_RESPONSE \
513 _MHD_DEPR_IN_MACRO ( \
514 "Value MHD_HTTP_NO_RESPONSE is deprecated as it is nginx internal code for logs only") \
536#define MHD_ICY_FLAG ((uint32_t) (((uint32_t) 1) << 31))
548#define MHD_HTTP_HEADER_ACCEPT "Accept"
550#define MHD_HTTP_HEADER_ACCEPT_CHARSET "Accept-Charset"
552#define MHD_HTTP_HEADER_ACCEPT_ENCODING "Accept-Encoding"
554#define MHD_HTTP_HEADER_ACCEPT_LANGUAGE "Accept-Language"
556#define MHD_HTTP_HEADER_ACCEPT_RANGES "Accept-Ranges"
558#define MHD_HTTP_HEADER_AGE "Age"
560#define MHD_HTTP_HEADER_ALLOW "Allow"
562#define MHD_HTTP_HEADER_AUTHORIZATION "Authorization"
564#define MHD_HTTP_HEADER_CACHE_CONTROL "Cache-Control"
566#define MHD_HTTP_HEADER_CLOSE "Close"
568#define MHD_HTTP_HEADER_CONNECTION "Connection"
570#define MHD_HTTP_HEADER_CONTENT_ENCODING "Content-Encoding"
572#define MHD_HTTP_HEADER_CONTENT_LANGUAGE "Content-Language"
574#define MHD_HTTP_HEADER_CONTENT_LENGTH "Content-Length"
576#define MHD_HTTP_HEADER_CONTENT_LOCATION "Content-Location"
578#define MHD_HTTP_HEADER_CONTENT_RANGE "Content-Range"
580#define MHD_HTTP_HEADER_CONTENT_TYPE "Content-Type"
582#define MHD_HTTP_HEADER_DATE "Date"
584#define MHD_HTTP_HEADER_ETAG "ETag"
586#define MHD_HTTP_HEADER_EXPECT "Expect"
588#define MHD_HTTP_HEADER_EXPIRES "Expires"
590#define MHD_HTTP_HEADER_FROM "From"
592#define MHD_HTTP_HEADER_HOST "Host"
594#define MHD_HTTP_HEADER_IF_MATCH "If-Match"
596#define MHD_HTTP_HEADER_IF_MODIFIED_SINCE "If-Modified-Since"
598#define MHD_HTTP_HEADER_IF_NONE_MATCH "If-None-Match"
600#define MHD_HTTP_HEADER_IF_RANGE "If-Range"
602#define MHD_HTTP_HEADER_IF_UNMODIFIED_SINCE "If-Unmodified-Since"
604#define MHD_HTTP_HEADER_LAST_MODIFIED "Last-Modified"
606#define MHD_HTTP_HEADER_LOCATION "Location"
608#define MHD_HTTP_HEADER_MAX_FORWARDS "Max-Forwards"
610#define MHD_HTTP_HEADER_MIME_VERSION "MIME-Version"
612#define MHD_HTTP_HEADER_PRAGMA "Pragma"
614#define MHD_HTTP_HEADER_PROXY_AUTHENTICATE "Proxy-Authenticate"
616#define MHD_HTTP_HEADER_PROXY_AUTHORIZATION "Proxy-Authorization"
618#define MHD_HTTP_HEADER_RANGE "Range"
620#define MHD_HTTP_HEADER_REFERER "Referer"
622#define MHD_HTTP_HEADER_RETRY_AFTER "Retry-After"
624#define MHD_HTTP_HEADER_SERVER "Server"
626#define MHD_HTTP_HEADER_TE "TE"
628#define MHD_HTTP_HEADER_TRAILER "Trailer"
630#define MHD_HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding"
632#define MHD_HTTP_HEADER_UPGRADE "Upgrade"
634#define MHD_HTTP_HEADER_USER_AGENT "User-Agent"
636#define MHD_HTTP_HEADER_VARY "Vary"
638#define MHD_HTTP_HEADER_VIA "Via"
640#define MHD_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate"
642#define MHD_HTTP_HEADER_WARNING "Warning"
646#define MHD_HTTP_HEADER_A_IM "A-IM"
648#define MHD_HTTP_HEADER_ACCEPT_ADDITIONS "Accept-Additions"
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_CONTENT_BASE "Content-Base"
690#define MHD_HTTP_HEADER_CONTENT_DISPOSITION "Content-Disposition"
692#define MHD_HTTP_HEADER_CONTENT_ID "Content-ID"
694#define MHD_HTTP_HEADER_CONTENT_MD5 "Content-MD5"
696#define MHD_HTTP_HEADER_CONTENT_SCRIPT_TYPE "Content-Script-Type"
698#define MHD_HTTP_HEADER_CONTENT_STYLE_TYPE "Content-Style-Type"
700#define MHD_HTTP_HEADER_CONTENT_VERSION "Content-Version"
702#define MHD_HTTP_HEADER_COOKIE "Cookie"
704#define MHD_HTTP_HEADER_COOKIE2 "Cookie2"
706#define MHD_HTTP_HEADER_DASL "DASL"
708#define MHD_HTTP_HEADER_DAV "DAV"
710#define MHD_HTTP_HEADER_DEFAULT_STYLE "Default-Style"
712#define MHD_HTTP_HEADER_DELTA_BASE "Delta-Base"
714#define MHD_HTTP_HEADER_DEPTH "Depth"
716#define MHD_HTTP_HEADER_DERIVED_FROM "Derived-From"
718#define MHD_HTTP_HEADER_DESTINATION "Destination"
720#define MHD_HTTP_HEADER_DIFFERENTIAL_ID "Differential-ID"
722#define MHD_HTTP_HEADER_DIGEST "Digest"
724#define MHD_HTTP_HEADER_EARLY_DATA "Early-Data"
726#define MHD_HTTP_HEADER_EXPECT_CT "Expect-CT"
728#define MHD_HTTP_HEADER_EXT "Ext"
730#define MHD_HTTP_HEADER_FORWARDED "Forwarded"
732#define MHD_HTTP_HEADER_GETPROFILE "GetProfile"
734#define MHD_HTTP_HEADER_HOBAREG "Hobareg"
736#define MHD_HTTP_HEADER_HTTP2_SETTINGS "HTTP2-Settings"
738#define MHD_HTTP_HEADER_IM "IM"
740#define MHD_HTTP_HEADER_IF "If"
742#define MHD_HTTP_HEADER_IF_SCHEDULE_TAG_MATCH "If-Schedule-Tag-Match"
744#define MHD_HTTP_HEADER_INCLUDE_REFERRED_TOKEN_BINDING_ID \
745 "Include-Referred-Token-Binding-ID"
747#define MHD_HTTP_HEADER_KEEP_ALIVE "Keep-Alive"
749#define MHD_HTTP_HEADER_LABEL "Label"
751#define MHD_HTTP_HEADER_LINK "Link"
753#define MHD_HTTP_HEADER_LOCK_TOKEN "Lock-Token"
755#define MHD_HTTP_HEADER_MAN "Man"
757#define MHD_HTTP_HEADER_MEMENTO_DATETIME "Memento-Datetime"
759#define MHD_HTTP_HEADER_METER "Meter"
761#define MHD_HTTP_HEADER_NEGOTIATE "Negotiate"
763#define MHD_HTTP_HEADER_OPT "Opt"
765#define MHD_HTTP_HEADER_OPTIONAL_WWW_AUTHENTICATE "Optional-WWW-Authenticate"
767#define MHD_HTTP_HEADER_ORDERING_TYPE "Ordering-Type"
769#define MHD_HTTP_HEADER_ORIGIN "Origin"
771#define MHD_HTTP_HEADER_OSCORE "OSCORE"
773#define MHD_HTTP_HEADER_OVERWRITE "Overwrite"
775#define MHD_HTTP_HEADER_P3P "P3P"
777#define MHD_HTTP_HEADER_PEP "PEP"
779#define MHD_HTTP_HEADER_PICS_LABEL "PICS-Label"
781#define MHD_HTTP_HEADER_PEP_INFO "Pep-Info"
783#define MHD_HTTP_HEADER_POSITION "Position"
785#define MHD_HTTP_HEADER_PREFER "Prefer"
787#define MHD_HTTP_HEADER_PREFERENCE_APPLIED "Preference-Applied"
789#define MHD_HTTP_HEADER_PROFILEOBJECT "ProfileObject"
791#define MHD_HTTP_HEADER_PROTOCOL "Protocol"
793#define MHD_HTTP_HEADER_PROTOCOL_INFO "Protocol-Info"
795#define MHD_HTTP_HEADER_PROTOCOL_QUERY "Protocol-Query"
797#define MHD_HTTP_HEADER_PROTOCOL_REQUEST "Protocol-Request"
799#define MHD_HTTP_HEADER_PROXY_AUTHENTICATION_INFO "Proxy-Authentication-Info"
801#define MHD_HTTP_HEADER_PROXY_FEATURES "Proxy-Features"
803#define MHD_HTTP_HEADER_PROXY_INSTRUCTION "Proxy-Instruction"
805#define MHD_HTTP_HEADER_PUBLIC "Public"
807#define MHD_HTTP_HEADER_PUBLIC_KEY_PINS "Public-Key-Pins"
809#define MHD_HTTP_HEADER_PUBLIC_KEY_PINS_REPORT_ONLY \
810 "Public-Key-Pins-Report-Only"
812#define MHD_HTTP_HEADER_REDIRECT_REF "Redirect-Ref"
814#define MHD_HTTP_HEADER_REPLAY_NONCE "Replay-Nonce"
816#define MHD_HTTP_HEADER_SAFE "Safe"
818#define MHD_HTTP_HEADER_SCHEDULE_REPLY "Schedule-Reply"
820#define MHD_HTTP_HEADER_SCHEDULE_TAG "Schedule-Tag"
822#define MHD_HTTP_HEADER_SEC_TOKEN_BINDING "Sec-Token-Binding"
824#define MHD_HTTP_HEADER_SEC_WEBSOCKET_ACCEPT "Sec-WebSocket-Accept"
826#define MHD_HTTP_HEADER_SEC_WEBSOCKET_EXTENSIONS "Sec-WebSocket-Extensions"
828#define MHD_HTTP_HEADER_SEC_WEBSOCKET_KEY "Sec-WebSocket-Key"
830#define MHD_HTTP_HEADER_SEC_WEBSOCKET_PROTOCOL "Sec-WebSocket-Protocol"
832#define MHD_HTTP_HEADER_SEC_WEBSOCKET_VERSION "Sec-WebSocket-Version"
834#define MHD_HTTP_HEADER_SECURITY_SCHEME "Security-Scheme"
836#define MHD_HTTP_HEADER_SET_COOKIE "Set-Cookie"
838#define MHD_HTTP_HEADER_SET_COOKIE2 "Set-Cookie2"
840#define MHD_HTTP_HEADER_SETPROFILE "SetProfile"
842#define MHD_HTTP_HEADER_SLUG "SLUG"
844#define MHD_HTTP_HEADER_SOAPACTION "SoapAction"
846#define MHD_HTTP_HEADER_STATUS_URI "Status-URI"
848#define MHD_HTTP_HEADER_STRICT_TRANSPORT_SECURITY "Strict-Transport-Security"
850#define MHD_HTTP_HEADER_SUNSET "Sunset"
852#define MHD_HTTP_HEADER_SURROGATE_CAPABILITY "Surrogate-Capability"
854#define MHD_HTTP_HEADER_SURROGATE_CONTROL "Surrogate-Control"
856#define MHD_HTTP_HEADER_TCN "TCN"
858#define MHD_HTTP_HEADER_TIMEOUT "Timeout"
860#define MHD_HTTP_HEADER_TOPIC "Topic"
862#define MHD_HTTP_HEADER_TTL "TTL"
864#define MHD_HTTP_HEADER_URGENCY "Urgency"
866#define MHD_HTTP_HEADER_URI "URI"
868#define MHD_HTTP_HEADER_VARIANT_VARY "Variant-Vary"
870#define MHD_HTTP_HEADER_WANT_DIGEST "Want-Digest"
872#define MHD_HTTP_HEADER_X_CONTENT_TYPE_OPTIONS "X-Content-Type-Options"
874#define MHD_HTTP_HEADER_X_FRAME_OPTIONS "X-Frame-Options"
877#define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN \
878 "Access-Control-Allow-Origin"
887#define MHD_HTTP_VERSION_1_0 "HTTP/1.0"
888#define MHD_HTTP_VERSION_1_1 "HTTP/1.1"
902#define MHD_HTTP_METHOD_CONNECT "CONNECT"
904#define MHD_HTTP_METHOD_DELETE "DELETE"
906#define MHD_HTTP_METHOD_GET "GET"
908#define MHD_HTTP_METHOD_HEAD "HEAD"
910#define MHD_HTTP_METHOD_OPTIONS "OPTIONS"
912#define MHD_HTTP_METHOD_POST "POST"
914#define MHD_HTTP_METHOD_PUT "PUT"
916#define MHD_HTTP_METHOD_TRACE "TRACE"
920#define MHD_HTTP_METHOD_ACL "ACL"
922#define MHD_HTTP_METHOD_BASELINE_CONTROL "BASELINE-CONTROL"
924#define MHD_HTTP_METHOD_BIND "BIND"
926#define MHD_HTTP_METHOD_CHECKIN "CHECKIN"
928#define MHD_HTTP_METHOD_CHECKOUT "CHECKOUT"
930#define MHD_HTTP_METHOD_COPY "COPY"
932#define MHD_HTTP_METHOD_LABEL "LABEL"
934#define MHD_HTTP_METHOD_LINK "LINK"
936#define MHD_HTTP_METHOD_LOCK "LOCK"
938#define MHD_HTTP_METHOD_MERGE "MERGE"
940#define MHD_HTTP_METHOD_MKACTIVITY "MKACTIVITY"
942#define MHD_HTTP_METHOD_MKCALENDAR "MKCALENDAR"
944#define MHD_HTTP_METHOD_MKCOL "MKCOL"
946#define MHD_HTTP_METHOD_MKREDIRECTREF "MKREDIRECTREF"
948#define MHD_HTTP_METHOD_MKWORKSPACE "MKWORKSPACE"
950#define MHD_HTTP_METHOD_MOVE "MOVE"
952#define MHD_HTTP_METHOD_ORDERPATCH "ORDERPATCH"
954#define MHD_HTTP_METHOD_PATCH "PATCH"
956#define MHD_HTTP_METHOD_PRI "PRI"
958#define MHD_HTTP_METHOD_PROPFIND "PROPFIND"
960#define MHD_HTTP_METHOD_PROPPATCH "PROPPATCH"
962#define MHD_HTTP_METHOD_REBIND "REBIND"
964#define MHD_HTTP_METHOD_REPORT "REPORT"
966#define MHD_HTTP_METHOD_SEARCH "SEARCH"
968#define MHD_HTTP_METHOD_UNBIND "UNBIND"
970#define MHD_HTTP_METHOD_UNCHECKOUT "UNCHECKOUT"
972#define MHD_HTTP_METHOD_UNLINK "UNLINK"
974#define MHD_HTTP_METHOD_UNLOCK "UNLOCK"
976#define MHD_HTTP_METHOD_UPDATE "UPDATE"
978#define MHD_HTTP_METHOD_UPDATEREDIRECTREF "UPDATEREDIRECTREF"
980#define MHD_HTTP_METHOD_VERSION_CONTROL "VERSION-CONTROL"
989#define MHD_HTTP_POST_ENCODING_FORM_URLENCODED \
990 "application/x-www-form-urlencoded"
991#define MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA "multipart/form-data"
1022struct MHD_PostProcessor;
1066#define MHD_USE_SSL \
1067 _MHD_DEPR_IN_MACRO ("Value MHD_USE_SSL is deprecated, use MHD_USE_TLS") \
1091#define MHD_USE_SELECT_INTERNALLY \
1092 _MHD_DEPR_IN_MACRO ( \
1093 "Value MHD_USE_SELECT_INTERNALLY is deprecated, use MHD_USE_INTERNAL_POLLING_THREAD instead") \
1094 MHD_USE_INTERNAL_POLLING_THREAD
1117#define MHD_USE_PEDANTIC_CHECKS \
1118 _MHD_DEPR_IN_MACRO ( \
1119 "Flag MHD_USE_PEDANTIC_CHECKS is deprecated, use option MHD_OPTION_STRICT_FOR_CLIENT instead") \
1142#define MHD_USE_POLL_INTERNALLY \
1143 _MHD_DEPR_IN_MACRO ( \
1144 "Value MHD_USE_POLL_INTERNALLY is deprecated, use MHD_USE_POLL_INTERNAL_THREAD instead") \
1145 MHD_USE_POLL_INTERNAL_THREAD
1159#define MHD_SUPPRESS_DATE_NO_CLOCK \
1160 _MHD_DEPR_IN_MACRO ( \
1161 "Value MHD_SUPPRESS_DATE_NO_CLOCK is deprecated, use MHD_USE_SUPPRESS_DATE_NO_CLOCK instead") \
1162 MHD_USE_SUPPRESS_DATE_NO_CLOCK
1186#define MHD_USE_EPOLL_LINUX_ONLY \
1187 _MHD_DEPR_IN_MACRO ( \
1188 "Value MHD_USE_EPOLL_LINUX_ONLY is deprecated, use MHD_USE_EPOLL") \
1207#define MHD_USE_EPOLL_INTERNALLY \
1208 _MHD_DEPR_IN_MACRO ( \
1209 "Value MHD_USE_EPOLL_INTERNALLY is deprecated, use MHD_USE_EPOLL_INTERNAL_THREAD") \
1210 MHD_USE_EPOLL_INTERNAL_THREAD
1212#define MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY \
1213 _MHD_DEPR_IN_MACRO ( \
1214 "Value MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY is deprecated, use MHD_USE_EPOLL_INTERNAL_THREAD") \
1215 MHD_USE_EPOLL_INTERNAL_THREAD
1235#define MHD_USE_PIPE_FOR_SHUTDOWN \
1236 _MHD_DEPR_IN_MACRO ( \
1237 "Value MHD_USE_PIPE_FOR_SHUTDOWN is deprecated, use MHD_USE_ITC") \
1257#define MHD_USE_EPOLL_TURBO \
1258 _MHD_DEPR_IN_MACRO ( \
1259 "Value MHD_USE_EPOLL_TURBO is deprecated, use MHD_USE_TURBO") \
1272#define MHD_USE_SUSPEND_RESUME \
1273 _MHD_DEPR_IN_MACRO ( \
1274 "Value MHD_USE_SUSPEND_RESUME is deprecated, use MHD_ALLOW_SUSPEND_RESUME instead") \
1275 MHD_ALLOW_SUSPEND_RESUME
1357 const char *username,
1773#define MHD_RESPONSE_HEADER_KIND \
1774 _MHD_DEPR_IN_MACRO ( \
1775 "Value MHD_RESPONSE_HEADER_KIND is deprecated and not used") \
1776 MHD_RESPONSE_HEADER_KIND
2119 const char *reason);
2131 const struct sockaddr *addr,
2180 const char *upload_data,
2181 size_t *upload_data_size,
2366 const char *filename,
2367 const char *content_type,
2368 const char *transfer_encoding,
2495 const struct sockaddr *addr,
2530 fd_set *read_fd_set,
2531 fd_set *write_fd_set,
2532 fd_set *except_fd_set,
2570 fd_set *read_fd_set,
2571 fd_set *write_fd_set,
2572 fd_set *except_fd_set,
2574 unsigned int fd_setsize);
2601#define MHD_get_fdset(daemon,read_fd_set,write_fd_set,except_fd_set,max_fd) \
2602 MHD_get_fdset2 ((daemon),(read_fd_set),(write_fd_set),(except_fd_set), \
2603 (max_fd),FD_SETSIZE)
2677 const fd_set *read_fd_set,
2678 const fd_set *write_fd_set,
2679 const fd_set *except_fd_set);
2700 void *iterator_cls);
2719 void *iterator_cls);
2862 const char **value_ptr,
2863 size_t *value_size_ptr);
2879 unsigned int status_code,
3035 "MHD_create_response_from_data() is deprecated, use MHD_create_response_from_buffer()") \
3163 "Function MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \
3169#if ! defined(_MHD_NO_DEPR_IN_MACRO) || defined(_MHD_NO_DEPR_FUNC)
3172#define MHD_create_response_from_fd_at_offset(size,fd,offset) \
3173 _MHD_DEPR_IN_MACRO ( \
3174 "Usage of MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \
3175 MHD_create_response_from_fd_at_offset64 ((size),(fd),(offset))
3235struct MHD_UpgradeResponseHandle;
3307 const char *extra_in,
3308 size_t extra_in_size,
3310 struct MHD_UpgradeResponseHandle *urh);
3344 void *upgrade_handler_cls);
3373 const char *content);
3388 const char *content);
3403 const char *content);
3419 void *iterator_cls);
3483 const char *post_data,
size_t post_data_len);
3508#define MHD_INVALID_NONCE -1
3576 const char *username,
3577 const char *password,
3578 unsigned int nonce_timeout,
3603 const char *username,
3604 const char *password,
3605 unsigned int nonce_timeout);
3628 const char *username,
3629 const uint8_t *digest,
3631 unsigned int nonce_timeout,
3656 const char *username,
3658 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 int MHD_queue_basic_auth_fail_response(struct MHD_Connection *connection, const char *realm, struct MHD_Response *response)
_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 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)
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_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_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)
_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
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
_MHD_EXTERN struct MHD_Response * MHD_create_response_for_upgrade(MHD_UpgradeHandler upgrade_handler, void *upgrade_handler_cls)
#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_EXTERN const char * MHD_get_reason_phrase_for(unsigned int code)
@ 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_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