GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
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)
 
enum MHD_Result MHD_response_execute_upgrade_ (struct MHD_Response *response, struct MHD_Connection *connection)
 
struct MHD_HTTP_HeaderMHD_get_response_element_n_ (struct MHD_Response *response, enum MHD_ValueKind kind, const char *key, size_t key_len)
 

Detailed Description

Methods for managing response objects.

Author
Daniel Pittman
Christian Grothoff
Karlson2k (Evgeny Grin)

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 2012 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_()

enum MHD_Result 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_request_handle_idle_().

Here is the caller graph for this function: