37static enum MHD_StatusCode
47 return MHD_SC_DAEMON_ALREADY_SHUTDOWN;
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)
_MHD_EXTERN const struct MHD_Action * MHD_action_from_response(struct MHD_Response *response, enum MHD_Bool destroy_after_use)
static enum MHD_StatusCode response_action(void *cls, struct MHD_Request *request)
bool MHD_request_handle_idle_(struct MHD_Request *request)
function to call event handlers based on event mask
#define MHD_HTTP_NOT_MODIFIED
#define MHD_HTTP_NO_CONTENT
@ MHD_REQUEST_FOOTERS_RECEIVED
@ MHD_REQUEST_HEADERS_PROCESSED
#define MHD_mutex_unlock_chk_(pmutex)
#define MHD_mutex_lock_chk_(pmutex)
MHD internal shared structures.
struct MHD_Response * response
uint64_t response_write_position
struct MHD_Connection * connection
struct MHD_Daemon * daemon
enum MHD_REQUEST_STATE state
enum MHD_HTTP_StatusCode status_code
unsigned int reference_count