Lines Matching refs:response
463 struct MHD_Response *response;
500 response = MHD_create_response_from_callback(MHD_SIZE_UNKNOWN, 4*1024, request_reader_entries, m, NULL);
501 if (!response)
504 MHD_add_response_header(response, "Content-Type", mime_types[m->mode]);
506 r = MHD_queue_response(connection, MHD_HTTP_OK, response);
507 MHD_destroy_response(response);
621 struct MHD_Response *response;
639 response = MHD_create_response_from_callback(MHD_SIZE_UNKNOWN, 4*1024, request_reader_fields, m, NULL);
640 if (!response)
643 MHD_add_response_header(response, "Content-Type", mime_types[m->mode == OUTPUT_JSON ? OUTPUT_JSON : OUTPUT_SHORT]);
645 r = MHD_queue_response(connection, MHD_HTTP_OK, response);
646 MHD_destroy_response(response);
656 struct MHD_Response *response;
665 response = MHD_create_response_from_buffer(strlen(page), page, MHD_RESPMEM_MUST_FREE);
666 if (!response) {
671 MHD_add_response_header(response, "Content-Type", "text/html");
672 MHD_add_response_header(response, "Location", target);
674 ret = MHD_queue_response(connection, MHD_HTTP_MOVED_PERMANENTLY, response);
675 MHD_destroy_response(response);
685 struct MHD_Response *response;
701 response = MHD_create_response_from_fd_at_offset64(st.st_size, fd, 0);
702 if (!response)
707 MHD_add_response_header(response, "Content-Type", mime_type);
709 ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
710 MHD_destroy_response(response);
749 struct MHD_Response *response;
811 response = MHD_create_response_from_buffer(strlen(json), json, MHD_RESPMEM_MUST_FREE);
812 if (!response) {
817 MHD_add_response_header(response, "Content-Type", "application/json");
818 r = MHD_queue_response(connection, MHD_HTTP_OK, response);
819 MHD_destroy_response(response);