Lines Matching refs:connection
183 struct MHD_Connection *connection, in request_meta_free() argument
199 struct MHD_Connection *connection, in process_http_upload() argument
211 __func__, connection, *upload_data_size); in process_http_upload()
219 return mhd_respond_oom(connection); in process_http_upload()
232 DATA_SIZE_MAX, connection); in process_http_upload()
235 ENTRY_FIELD_COUNT_MAX, connection); in process_http_upload()
238 connection); in process_http_upload()
251 return mhd_respondf(connection, in process_http_upload()
257 return mhd_respond(connection, MHD_HTTP_ACCEPTED, "OK."); in process_http_upload()
262 struct MHD_Connection *connection, in request_handler() argument
275 assert(connection); in request_handler()
283 return process_http_upload(connection, in request_handler()
288 return mhd_respond(connection, MHD_HTTP_NOT_ACCEPTABLE, "Unsupported method."); in request_handler()
291 return mhd_respond(connection, MHD_HTTP_NOT_FOUND, "Not found."); in request_handler()
293 header = MHD_lookup_connection_value(connection, MHD_HEADER_KIND, "Content-Type"); in request_handler()
295 return mhd_respond(connection, MHD_HTTP_UNSUPPORTED_MEDIA_TYPE, in request_handler()
298 header = MHD_lookup_connection_value(connection, MHD_HEADER_KIND, "Transfer-Encoding"); in request_handler()
301 return mhd_respondf(connection, 0, MHD_HTTP_BAD_REQUEST, in request_handler()
307 header = MHD_lookup_connection_value(connection, MHD_HEADER_KIND, "Content-Length"); in request_handler()
312 return mhd_respond(connection, MHD_HTTP_BAD_REQUEST, in request_handler()
317 return mhd_respondf(connection, r, MHD_HTTP_LENGTH_REQUIRED, in request_handler()
324 return mhd_respondf(connection, 0, MHD_HTTP_CONTENT_TOO_LARGE, in request_handler()
331 ci = MHD_get_connection_info(connection, in request_handler()
335 return mhd_respond(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, in request_handler()
344 r = check_permissions(connection, &code, &hostname); in request_handler()
350 return mhd_respond(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, in request_handler()
358 return respond_oom(connection); in request_handler()
360 return mhd_respondf(connection, r, MHD_HTTP_INTERNAL_SERVER_ERROR, "%m"); in request_handler()