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,
56 _(
"Attempted 'upgrade' connection on daemon without MHD_ALLOW_UPGRADE option!\n"));
58 return MHD_SC_UPGRADE_ON_DAEMON_WITH_UPGRADE_DISALLOWED;
62 #if defined(_MHD_HAVE_SENDFILE)
63 if ( (-1 == response->
fd)
65 || (
NULL != daemon->tls_api)
68 request->resp_sender = MHD_resp_sender_std;
70 request->resp_sender = MHD_resp_sender_sendfile;
73 if ( (MHD_METHOD_HEAD == request->
method) ||
84 ( (MHD_METHOD_POST == request->
method) ||
85 (MHD_METHOD_PUT == request->
method) ) )
117 enum MHD_Bool destroy_after_use)
121 if (! destroy_after_use)
MHD_mutex_lock_chk_ & daemon
#define MHD_mutex_unlock_chk_(pmutex)
static enum MHD_StatusCode response_action(void *cls, struct MHD_Request *request)
#define MHD_HTTP_NOT_MODIFIED
internal shared structures
enum MHD_REQUEST_STATE state
struct MHD_Daemon * daemon
enum MHD_HTTP_StatusCode status_code
#define MHD_HTTP_NO_CONTENT
unsigned int reference_count
_MHD_EXTERN struct MHD_Action * MHD_action_from_response(struct MHD_Response *response, enum MHD_Bool destroy_after_use)
function to call event handlers based on event mask
struct MHD_Response * response
#define MHD_mutex_lock_chk_(pmutex)
uint64_t response_write_position
struct MHD_Connection * connection
bool MHD_request_handle_idle_(struct MHD_Request *request)