37 static enum MHD_StatusCode
47 return MHD_SC_DAEMON_ALREADY_SHUTDOWN;
49 #ifdef UPGRADE_SUPPORT
50 if ( (
NULL != response->upgrade_handler) &&
55 MHD_SC_UPGRADE_ON_DAEMON_WITH_UPGRADE_DISALLOWED,
57 "Attempted 'upgrade' connection on daemon without MHD_ALLOW_UPGRADE option!\n"));
59 return MHD_SC_UPGRADE_ON_DAEMON_WITH_UPGRADE_DISALLOWED;
63 #if defined(_MHD_HAVE_SENDFILE)
64 if ( (-1 == response->
fd)
66 || (
NULL != daemon->tls_api)
69 request->resp_sender = MHD_resp_sender_std;
71 request->resp_sender = MHD_resp_sender_sendfile;
74 if ( (MHD_METHOD_HEAD == request->
method) ||
85 ( (MHD_METHOD_POST == request->
method) ||
86 (MHD_METHOD_PUT == request->
method) ) )
118 enum MHD_Bool destroy_after_use)
122 if (! destroy_after_use)