GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
response_options.c File Reference
#include "internal.h"
Include dependency graph for response_options.c:

Go to the source code of this file.

Functions

void MHD_response_option_v10_only (struct MHD_Response *response)
 
void MHD_response_option_termination_callback (struct MHD_Response *response, MHD_RequestTerminationCallback termination_cb, void *termination_cb_cls)
 

Function Documentation

◆ MHD_response_option_termination_callback()

void MHD_response_option_termination_callback ( struct MHD_Response response,
MHD_RequestTerminationCallback  termination_cb,
void *  termination_cb_cls 
)

Set a function to be called once MHD is finished with the request.

Parameters
responsewhich response to set the callback for
termination_cbfunction to call
termination_cb_clsclosure for termination_cb

Definition at line 51 of file response_options.c.

References MHD_Response::termination_cb, and MHD_Response::termination_cb_cls.

◆ MHD_response_option_v10_only()

void MHD_response_option_v10_only ( struct MHD_Response response)

Only respond in conservative HTTP 1.0-mode. In particular, do not (automatically) sent "Connection" headers and always close the connection after generating the response.

Parameters
requestthe request for which we force HTTP 1.0 to be used

Definition at line 36 of file response_options.c.

References MHD_Response::v10_only.