Lines Matching refs:Response
8 #include "Response.h"
42 namespace Response {
43 // SendOK just sends an empty response with a 200 OK status code.
47 MHD_Response* response = MHD_create_response_from_buffer(strlen(data),
50 int ret = MHD_queue_response(connection, 200, response);
51 MHD_destroy_response(response);
56 MHD_Response* response = MHD_create_response_from_buffer(strlen(msg),
59 int ret = MHD_queue_response(connection, 500, response);
60 MHD_destroy_response(response);
66 MHD_Response* response = MHD_create_response_from_buffer(data->size(),
69 MHD_add_response_header(response, "Content-Type", type);
72 MHD_add_response_header(response, "Content-Disposition", dispositionString);
75 int ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
76 MHD_destroy_response(response);
83 MHD_Response* response = MHD_create_response_from_buffer(
87 MHD_add_response_header (response, "Access-Control-Allow-Origin", "*");
92 MHD_add_response_header (response, "Location", redirectUrl);
96 int ret = MHD_queue_response(connection, status, response);
97 MHD_destroy_response(response);
101 } // namespace Response