86 #ifndef MHD_MICROHTTPD_H 87 #define MHD_MICROHTTPD_H 107 #ifndef MHD_PLATFORM_H 110 #include <sys/types.h> 111 #if defined(_WIN32) && !defined(__CYGWIN__) 112 #include <ws2tcpip.h> 113 #if defined(_MSC_FULL_VER) && !defined (_SSIZE_T_DEFINED) 114 #define _SSIZE_T_DEFINED 115 typedef intptr_t ssize_t;
119 #include <sys/time.h> 120 #include <sys/socket.h> 124 #if defined(__CYGWIN__) && !defined(_SYS_TYPES_FD_SET) 126 #error Cygwin with winsock fd_set is not supported 133 #define MHD_VERSION 0x00094601 148 #define MHD_INVALID_NONCE -1 155 #define MHD_SIZE_UNKNOWN UINT64_MAX 157 #define MHD_SIZE_UNKNOWN ((uint64_t) -1LL) 161 #define MHD_CONTENT_READER_END_OF_STREAM SIZE_MAX 162 #define MHD_CONTENT_READER_END_WITH_ERROR (SIZE_MAX - 1) 164 #define MHD_CONTENT_READER_END_OF_STREAM ((size_t) -1LL) 165 #define MHD_CONTENT_READER_END_WITH_ERROR (((size_t) -1LL) - 1) 169 #if defined(_WIN32) && defined(MHD_W32LIB) 170 #define _MHD_EXTERN extern 171 #elif defined (_WIN32) && defined(MHD_W32DLL) 173 #define _MHD_EXTERN __declspec(dllimport) 175 #define _MHD_EXTERN extern 179 #ifndef MHD_SOCKET_DEFINED 183 #if !defined(_WIN32) || defined(_SYS_TYPES_FD_SET) 184 #define MHD_POSIX_SOCKETS 1 186 #define MHD_INVALID_SOCKET (-1) 188 #define MHD_WINSOCK_SOCKETS 1 189 #include <winsock2.h> 191 #define MHD_INVALID_SOCKET (INVALID_SOCKET) 193 #define MHD_SOCKET_DEFINED 1 199 #ifdef MHD_NO_DEPRECATION 200 #define _MHD_DEPR_MACRO(msg) 201 #define _MHD_DEPR_FUNC(msg) 204 #ifndef _MHD_DEPR_MACRO 205 #if defined(_MSC_FULL_VER) && _MSC_VER+0 >= 1500 207 #define _MHD_INSTRMACRO(a) #a 208 #define _MHD_STRMACRO(a) _MHD_INSTRMACRO(a) 209 #define _MHD_DEPR_MACRO(msg) __pragma(message(__FILE__ "(" _MHD_STRMACRO(__LINE__)"): warning: " msg)) 210 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO(msg) 211 #elif defined(__clang__) || defined (__GNUC_PATCHLEVEL__) 212 #define _MHD_GCC_PRAG(x) _Pragma (#x) 213 #if __clang_major__+0 >= 5 || \ 214 (!defined(__apple_build_version__) && (__clang_major__+0 > 3 || (__clang_major__+0 == 3 && __clang_minor__ >= 3))) || \ 215 __GNUC__+0 > 4 || (__GNUC__+0 == 4 && __GNUC_MINOR__+0 >= 8) 216 #define _MHD_DEPR_MACRO(msg) _MHD_GCC_PRAG(GCC warning msg) 217 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO(msg) 219 #define _MHD_DEPR_MACRO(msg) _MHD_GCC_PRAG(message msg) 220 #if (__clang_major__+0 > 2 || (__clang_major__+0 == 2 && __clang_minor__ >= 9)) 222 #define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO(msg) 227 #define _MHD_DEPR_MACRO(msg) 231 #ifndef _MHD_DEPR_IN_MACRO 232 #define _MHD_NO_DEPR_IN_MACRO 1 233 #define _MHD_DEPR_IN_MACRO(msg) 236 #ifndef _MHD_DEPR_FUNC 237 #if defined(_MSC_FULL_VER) && _MSC_VER+0 >= 1400 238 #define _MHD_DEPR_FUNC(msg) __declspec(deprecated(msg)) 239 #elif defined(_MSC_FULL_VER) && _MSC_VER+0 >= 1310 241 #define _MHD_DEPR_FUNC(msg) __declspec(deprecated) 242 #elif (__GNUC__+0 >= 5) || (defined (__clang__) && \ 243 (__clang_major__+0 > 2 || (__clang_major__+0 == 2 && __clang_minor__ >= 9))) 244 #define _MHD_DEPR_FUNC(msg) __attribute__((deprecated(msg))) 245 #elif defined (__clang__) || __GNUC__+0 > 3 || (__GNUC__+0 == 3 && __GNUC_MINOR__+0 >= 1) 247 #define _MHD_DEPR_FUNC(msg) __attribute__((__deprecated__)) 250 #define _MHD_DEPR_FUNC(msg) 259 #ifndef MHD_LONG_LONG 263 #define MHD_LONG_LONG long long 264 #define MHD_UNSIGNED_LONG_LONG unsigned long long 266 _MHD_DEPR_MACRO(
"Macro MHD_LONG_LONG is deprecated, use MHD_UNSIGNED_LONG_LONG")
272 #ifndef MHD_LONG_LONG_PRINTF 276 #define MHD_LONG_LONG_PRINTF "ll" 277 #define MHD_UNSIGNED_LONG_LONG_PRINTF "%llu" 279 _MHD_DEPR_MACRO(
"Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG_LONG_PRINTF")
288 #define MHD_HTTP_CONTINUE 100 289 #define MHD_HTTP_SWITCHING_PROTOCOLS 101 290 #define MHD_HTTP_PROCESSING 102 292 #define MHD_HTTP_OK 200 293 #define MHD_HTTP_CREATED 201 294 #define MHD_HTTP_ACCEPTED 202 295 #define MHD_HTTP_NON_AUTHORITATIVE_INFORMATION 203 296 #define MHD_HTTP_NO_CONTENT 204 297 #define MHD_HTTP_RESET_CONTENT 205 298 #define MHD_HTTP_PARTIAL_CONTENT 206 299 #define MHD_HTTP_MULTI_STATUS 207 301 #define MHD_HTTP_MULTIPLE_CHOICES 300 302 #define MHD_HTTP_MOVED_PERMANENTLY 301 303 #define MHD_HTTP_FOUND 302 304 #define MHD_HTTP_SEE_OTHER 303 305 #define MHD_HTTP_NOT_MODIFIED 304 306 #define MHD_HTTP_USE_PROXY 305 307 #define MHD_HTTP_SWITCH_PROXY 306 308 #define MHD_HTTP_TEMPORARY_REDIRECT 307 310 #define MHD_HTTP_BAD_REQUEST 400 311 #define MHD_HTTP_UNAUTHORIZED 401 312 #define MHD_HTTP_PAYMENT_REQUIRED 402 313 #define MHD_HTTP_FORBIDDEN 403 314 #define MHD_HTTP_NOT_FOUND 404 315 #define MHD_HTTP_METHOD_NOT_ALLOWED 405 316 #define MHD_HTTP_NOT_ACCEPTABLE 406 318 #define MHD_HTTP_METHOD_NOT_ACCEPTABLE \ 319 _MHD_DEPR_IN_MACRO("Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE") 406 320 #define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED 407 321 #define MHD_HTTP_REQUEST_TIMEOUT 408 322 #define MHD_HTTP_CONFLICT 409 323 #define MHD_HTTP_GONE 410 324 #define MHD_HTTP_LENGTH_REQUIRED 411 325 #define MHD_HTTP_PRECONDITION_FAILED 412 326 #define MHD_HTTP_REQUEST_ENTITY_TOO_LARGE 413 327 #define MHD_HTTP_REQUEST_URI_TOO_LONG 414 328 #define MHD_HTTP_UNSUPPORTED_MEDIA_TYPE 415 329 #define MHD_HTTP_REQUESTED_RANGE_NOT_SATISFIABLE 416 330 #define MHD_HTTP_EXPECTATION_FAILED 417 331 #define MHD_HTTP_UNPROCESSABLE_ENTITY 422 332 #define MHD_HTTP_LOCKED 423 333 #define MHD_HTTP_FAILED_DEPENDENCY 424 334 #define MHD_HTTP_UNORDERED_COLLECTION 425 335 #define MHD_HTTP_UPGRADE_REQUIRED 426 336 #define MHD_HTTP_NO_RESPONSE 444 337 #define MHD_HTTP_RETRY_WITH 449 338 #define MHD_HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS 450 339 #define MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451 341 #define MHD_HTTP_INTERNAL_SERVER_ERROR 500 342 #define MHD_HTTP_NOT_IMPLEMENTED 501 343 #define MHD_HTTP_BAD_GATEWAY 502 344 #define MHD_HTTP_SERVICE_UNAVAILABLE 503 345 #define MHD_HTTP_GATEWAY_TIMEOUT 504 346 #define MHD_HTTP_HTTP_VERSION_NOT_SUPPORTED 505 347 #define MHD_HTTP_VARIANT_ALSO_NEGOTIATES 506 348 #define MHD_HTTP_INSUFFICIENT_STORAGE 507 349 #define MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED 509 350 #define MHD_HTTP_NOT_EXTENDED 510 370 #define MHD_ICY_FLAG ((uint32_t)(((uint32_t)1) << 31)) 378 #define MHD_HTTP_HEADER_ACCEPT "Accept" 379 #define MHD_HTTP_HEADER_ACCEPT_CHARSET "Accept-Charset" 380 #define MHD_HTTP_HEADER_ACCEPT_ENCODING "Accept-Encoding" 381 #define MHD_HTTP_HEADER_ACCEPT_LANGUAGE "Accept-Language" 382 #define MHD_HTTP_HEADER_ACCEPT_RANGES "Accept-Ranges" 383 #define MHD_HTTP_HEADER_AGE "Age" 384 #define MHD_HTTP_HEADER_ALLOW "Allow" 385 #define MHD_HTTP_HEADER_AUTHORIZATION "Authorization" 386 #define MHD_HTTP_HEADER_CACHE_CONTROL "Cache-Control" 387 #define MHD_HTTP_HEADER_CONNECTION "Connection" 388 #define MHD_HTTP_HEADER_CONTENT_ENCODING "Content-Encoding" 389 #define MHD_HTTP_HEADER_CONTENT_LANGUAGE "Content-Language" 390 #define MHD_HTTP_HEADER_CONTENT_LENGTH "Content-Length" 391 #define MHD_HTTP_HEADER_CONTENT_LOCATION "Content-Location" 392 #define MHD_HTTP_HEADER_CONTENT_MD5 "Content-MD5" 393 #define MHD_HTTP_HEADER_CONTENT_RANGE "Content-Range" 394 #define MHD_HTTP_HEADER_CONTENT_TYPE "Content-Type" 395 #define MHD_HTTP_HEADER_COOKIE "Cookie" 396 #define MHD_HTTP_HEADER_DATE "Date" 397 #define MHD_HTTP_HEADER_ETAG "ETag" 398 #define MHD_HTTP_HEADER_EXPECT "Expect" 399 #define MHD_HTTP_HEADER_EXPIRES "Expires" 400 #define MHD_HTTP_HEADER_FROM "From" 401 #define MHD_HTTP_HEADER_HOST "Host" 402 #define MHD_HTTP_HEADER_IF_MATCH "If-Match" 403 #define MHD_HTTP_HEADER_IF_MODIFIED_SINCE "If-Modified-Since" 404 #define MHD_HTTP_HEADER_IF_NONE_MATCH "If-None-Match" 405 #define MHD_HTTP_HEADER_IF_RANGE "If-Range" 406 #define MHD_HTTP_HEADER_IF_UNMODIFIED_SINCE "If-Unmodified-Since" 407 #define MHD_HTTP_HEADER_LAST_MODIFIED "Last-Modified" 408 #define MHD_HTTP_HEADER_LOCATION "Location" 409 #define MHD_HTTP_HEADER_MAX_FORWARDS "Max-Forwards" 410 #define MHD_HTTP_HEADER_PRAGMA "Pragma" 411 #define MHD_HTTP_HEADER_PROXY_AUTHENTICATE "Proxy-Authenticate" 412 #define MHD_HTTP_HEADER_PROXY_AUTHORIZATION "Proxy-Authorization" 413 #define MHD_HTTP_HEADER_RANGE "Range" 415 #define MHD_HTTP_HEADER_REFERER "Referer" 416 #define MHD_HTTP_HEADER_RETRY_AFTER "Retry-After" 417 #define MHD_HTTP_HEADER_SERVER "Server" 418 #define MHD_HTTP_HEADER_SET_COOKIE "Set-Cookie" 419 #define MHD_HTTP_HEADER_SET_COOKIE2 "Set-Cookie2" 420 #define MHD_HTTP_HEADER_TE "TE" 421 #define MHD_HTTP_HEADER_TRAILER "Trailer" 422 #define MHD_HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding" 423 #define MHD_HTTP_HEADER_UPGRADE "Upgrade" 424 #define MHD_HTTP_HEADER_USER_AGENT "User-Agent" 425 #define MHD_HTTP_HEADER_VARY "Vary" 426 #define MHD_HTTP_HEADER_VIA "Via" 427 #define MHD_HTTP_HEADER_WARNING "Warning" 428 #define MHD_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate" 429 #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN "Access-Control-Allow-Origin" 430 #define MHD_HTTP_HEADER_CONTENT_DISPOSITION "Content-Disposition" 440 #define MHD_HTTP_VERSION_1_0 "HTTP/1.0" 441 #define MHD_HTTP_VERSION_1_1 "HTTP/1.1" 450 #define MHD_HTTP_METHOD_CONNECT "CONNECT" 451 #define MHD_HTTP_METHOD_DELETE "DELETE" 452 #define MHD_HTTP_METHOD_GET "GET" 453 #define MHD_HTTP_METHOD_HEAD "HEAD" 454 #define MHD_HTTP_METHOD_OPTIONS "OPTIONS" 455 #define MHD_HTTP_METHOD_POST "POST" 456 #define MHD_HTTP_METHOD_PUT "PUT" 457 #define MHD_HTTP_METHOD_PATCH "PATCH" 458 #define MHD_HTTP_METHOD_TRACE "TRACE" 467 #define MHD_HTTP_POST_ENCODING_FORM_URLENCODED "application/x-www-form-urlencoded" 468 #define MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA "multipart/form-data" 499 struct MHD_PostProcessor;
1289 const char *reason);
1301 const struct sockaddr *addr,
1350 const char *upload_data,
1351 size_t *upload_data_size,
1508 const char *filename,
1509 const char *content_type,
1510 const char *transfer_encoding,
1631 const struct sockaddr *addr,
1656 fd_set *read_fd_set,
1657 fd_set *write_fd_set,
1658 fd_set *except_fd_set,
1685 fd_set *read_fd_set,
1686 fd_set *write_fd_set,
1687 fd_set *except_fd_set,
1689 unsigned int fd_setsize);
1711 #define MHD_get_fdset(daemon,read_fd_set,write_fd_set,except_fd_set,max_fd) \ 1712 MHD_get_fdset2((daemon),(read_fd_set),(write_fd_set),(except_fd_set),(max_fd),FD_SETSIZE) 1778 const fd_set *read_fd_set,
1779 const fd_set *write_fd_set,
1780 const fd_set *except_fd_set);
1802 void *iterator_cls);
1899 unsigned int status_code,
2032 _MHD_DEPR_FUNC(
"MHD_create_response_from_data() is deprecated, use MHD_create_response_from_buffer()")
\ 2142 _MHD_DEPR_FUNC(
"Function MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()")
\ 2148 #ifndef _MHD_NO_DEPR_IN_MACRO 2151 #define MHD_create_response_from_fd_at_offset(size,fd,offset) \ 2152 _MHD_DEPR_IN_MACRO("Usage of MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \ 2153 MHD_create_response_from_fd_at_offset64((size),(fd),(offset)) 2186 enum MHD_UpgradeAction
2197 MHD_UPGRADE_ACTION_CLOSE = 0,
2208 MHD_UPGRADE_ACTION_CORK
2225 (*MHD_UpgradeActionCallback)(
void *cls,
2226 enum MHD_UpgradeAction action,
2275 (*MHD_UpgradeHandler)(
void *cls,
2278 MHD_UpgradeActionCallback upgrade_action,
2279 void *upgrade_action_cls);
2312 MHD_create_response_for_upgrade (MHD_UpgradeHandler upgrade_handler,
2313 void *upgrade_handler_cls);
2342 const char *content);
2357 const char *content);
2372 const char *content);
2451 const char *post_data,
size_t post_data_len);
2476 #define MHD_INVALID_NONCE -1 2507 const char *username,
2508 const char *password,
2509 unsigned int nonce_timeout);
#define _MHD_DEPR_FUNC(msg)
int(* MHD_KeyValueIterator)(void *cls, enum MHD_ValueKind kind, const char *key, const char *value)
_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 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 const char * MHD_get_version(void)
_MHD_EXTERN const char * MHD_lookup_connection_value(struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key)
_MHD_EXTERN int MHD_add_response_header(struct MHD_Response *response, const char *header, const char *content)
MHD_ContentReaderFreeCallback crfc
_MHD_EXTERN int MHD_get_timeout(struct MHD_Daemon *daemon, MHD_UNSIGNED_LONG_LONG *timeout)
void(* MHD_ContentReaderFreeCallback)(void *cls)
_MHD_EXTERN int MHD_add_connection(struct MHD_Daemon *daemon, MHD_socket client_socket, const struct sockaddr *addr, socklen_t addrlen)
int(* 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_EXTERN int 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_from_fd64(uint64_t size, int fd)
MHD_RequestTerminationCode
_MHD_EXTERN int MHD_destroy_post_processor(struct MHD_PostProcessor *pp)
_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_ConnectionNotificationCode
_MHD_EXTERN void MHD_set_panic_func(MHD_PanicCallback cb, void *cls)
#define MHD_UNSIGNED_LONG_LONG
void(* MHD_PanicCallback)(void *cls, const char *file, unsigned int line, const char *reason)
_MHD_EXTERN struct MHD_PostProcessor * MHD_create_post_processor(struct MHD_Connection *connection, size_t buffer_size, MHD_PostDataIterator iter, void *iter_cls)
void(* MHD_LogCallback)(void *cls, const char *fm, va_list ap)
_MHD_EXTERN const union MHD_ConnectionInfo * MHD_get_connection_info(struct MHD_Connection *connection, enum MHD_ConnectionInfoType info_type,...)
_MHD_EXTERN char * MHD_basic_auth_get_username_password(struct MHD_Connection *connection, char **password)
_MHD_EXTERN void MHD_stop_daemon(struct MHD_Daemon *daemon)
_MHD_EXTERN int 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_add_response_footer(struct MHD_Response *response, const char *footer, const char *content)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_fd_at_offset64(uint64_t size, int fd, uint64_t offset)
_MHD_EXTERN int 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)
ssize_t(* MHD_ContentReaderCallback)(void *cls, uint64_t pos, char *buf, size_t max)
_MHD_EXTERN char * MHD_digest_auth_get_username(struct MHD_Connection *connection)
_MHD_EXTERN void MHD_destroy_response(struct MHD_Response *response)
_MHD_EXTERN void MHD_suspend_connection(struct MHD_Connection *connection)
_MHD_EXTERN int MHD_set_connection_option(struct MHD_Connection *connection, enum MHD_CONNECTION_OPTION option,...)
struct MHD_Response * MHD_create_response_from_data(size_t size, void *data, int must_free, int must_copy)
struct MHD_Daemon * daemon
_MHD_EXTERN int MHD_post_process(struct MHD_PostProcessor *pp, const char *post_data, size_t post_data_len)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_fd(size_t size, int fd)
_MHD_EXTERN int MHD_queue_response(struct MHD_Connection *connection, unsigned int status_code, struct MHD_Response *response)
_MHD_EXTERN struct MHD_Response * MHD_create_response_from_buffer(size_t size, void *buffer, enum MHD_ResponseMemoryMode mode)
const char * MHD_get_reason_phrase_for(unsigned int code)
MHD_AcceptPolicyCallback apc
int(* 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)
void(* MHD_RequestCompletedCallback)(void *cls, struct MHD_Connection *connection, void **con_cls, enum MHD_RequestTerminationCode toe)
_MHD_EXTERN int MHD_set_response_options(struct MHD_Response *response, enum MHD_ResponseFlags flags,...)
_MHD_EXTERN int MHD_get_connection_values(struct MHD_Connection *connection, enum MHD_ValueKind kind, MHD_KeyValueIterator iterator, void *iterator_cls)
_MHD_EXTERN int MHD_run(struct MHD_Daemon *daemon)
#define MHD_get_fdset(daemon, read_fd_set, write_fd_set, except_fd_set, max_fd)
MHD_ContentReaderCallback crc
_MHD_EXTERN int MHD_is_feature_supported(enum MHD_FEATURE feature)
struct sockaddr * client_addr
_MHD_EXTERN int MHD_del_response_header(struct MHD_Response *response, const char *header, const char *content)
#define _MHD_DEPR_MACRO(msg)
_MHD_EXTERN int 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_EXTERN const char * MHD_get_response_header(struct MHD_Response *response, const char *key)
_MHD_EXTERN MHD_socket MHD_quiesce_daemon(struct MHD_Daemon *daemon)
unsigned int num_connections
int(* MHD_AcceptPolicyCallback)(void *cls, const struct sockaddr *addr, socklen_t addrlen)
void(* MHD_NotifyConnectionCallback)(void *cls, struct MHD_Connection *connection, void **socket_context, enum MHD_ConnectionNotificationCode toe)
_MHD_EXTERN const union MHD_DaemonInfo * MHD_get_daemon_info(struct MHD_Daemon *daemon, enum MHD_DaemonInfoType info_type,...)
_MHD_EXTERN size_t MHD_http_unescape(char *val)
struct MHD_Response * MHD_create_response_from_fd_at_offset(size_t size, int fd, off_t offset)
_MHD_EXTERN int MHD_set_connection_value(struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key, const char *value)
MHD_FLAG
Flags for the struct MHD_Daemon.
_MHD_EXTERN int MHD_get_response_headers(struct MHD_Response *response, MHD_KeyValueIterator iterator, void *iterator_cls)
_MHD_EXTERN void MHD_resume_connection(struct MHD_Connection *connection)