GNU libmicrohttpd  0.9.29
response.h File Reference

Methods for managing response objects. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void MHD_increment_response_rc (struct MHD_Response *response)
 
int MHD_response_execute_upgrade_ (struct MHD_Response *response, struct MHD_Connection *connection)
 

Detailed Description

Methods for managing response objects.

Author
Daniel Pittman
Christian Grothoff

Definition in file response.h.

Function Documentation

◆ MHD_increment_response_rc()

void MHD_increment_response_rc ( struct MHD_Response response)

Increments the reference counter for the response.

Parameters
responseobject to modify

Definition at line 1090 of file response.c.

References MHD_mutex_lock_chk_, MHD_mutex_unlock_chk_, MHD_Response::mutex, and MHD_Response::reference_count.

Referenced by MHD_queue_response().

Here is the caller graph for this function:

◆ MHD_response_execute_upgrade_()

int MHD_response_execute_upgrade_ ( struct MHD_Response response,
struct MHD_Connection connection 
)

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.

Remarks
To be called only from thread that process connection's recv(), send() and response. Must be called right after sending response headers.
Parameters
responsethe response that was created for an upgrade
connectionthe specific connection we are upgrading
Returns
MHD_YES on success, MHD_NO on failure (will cause connection to be closed)

Referenced by MHD_connection_handle_idle(), and MHD_create_response_from_buffer().

Here is the caller graph for this function: