summaryrefslogtreecommitdiff
path: root/src/microhttpd/response.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/response.h')
-rw-r--r--src/microhttpd/response.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/microhttpd/response.h b/src/microhttpd/response.h
index a13683d1..ce7e131c 100644
--- a/src/microhttpd/response.h
+++ b/src/microhttpd/response.h
@@ -36,4 +36,22 @@ void
MHD_increment_response_rc (struct MHD_Response *response);
+/**
+ * We are done sending the header of a given response
+ * to the client. Now it is time to perform the upgrade
+ * and hand over the connection to the application.
+ *
+ * @param response the response that was created for an upgrade
+ * @param connection the specific connection we are upgrading
+ * @return #MHD_YES on success, #MHD_NO on failure (will cause
+ * connection to be closed)
+ */
+// FIXME: This function will need to be called at the right place(s)
+// in the connection processing (just after we are done sending the header)
+// (for responses that have the 'upgrade_header' callback set).
+int
+MHD_response_execute_upgrade_ (struct MHD_Response *response,
+ struct MHD_Connection *connection);
+
+
#endif