Lines Matching refs:connection
29 static int mhd_respond_internal(struct MHD_Connection *connection, in mhd_respond_internal() argument
34 assert(connection); in mhd_respond_internal()
44 return MHD_queue_response(connection, code, response); in mhd_respond_internal()
47 int mhd_respond(struct MHD_Connection *connection, in mhd_respond() argument
55 return mhd_respond_internal(connection, code, in mhd_respond()
60 int mhd_respond_oom(struct MHD_Connection *connection) { in mhd_respond_oom() argument
61 return mhd_respond(connection, MHD_HTTP_SERVICE_UNAVAILABLE, "Out of memory."); in mhd_respond_oom()
64 int mhd_respondf(struct MHD_Connection *connection, in mhd_respondf() argument
74 assert(connection); in mhd_respondf()
88 return respond_oom(connection); in mhd_respondf()
90 return mhd_respond_internal(connection, code, m, r, MHD_RESPMEM_MUST_FREE); in mhd_respondf()
249 int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) { in check_permissions() argument
256 assert(connection); in check_permissions()
261 ci = MHD_get_connection_info(connection, in check_permissions()
265 *code = mhd_respond(connection, MHD_HTTP_FORBIDDEN, in check_permissions()
274 *code = mhd_respond(connection, MHD_HTTP_UNAUTHORIZED, in check_permissions()
281 *code = mhd_respond(connection, MHD_HTTP_UNAUTHORIZED, in check_permissions()
294 *code = mhd_respond(connection, MHD_HTTP_UNAUTHORIZED, in check_permissions()
301 int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) { in check_permissions() argument