GNU libmicrohttpd  0.9.72
response.c File Reference

implementation of general response functions More...

#include "internal.h"
Include dependency graph for response.c:

Go to the source code of this file.

Functions

static bool add_response_entry (struct MHD_Response *response, enum MHD_ValueKind kind, const char *header, const char *content)
 
void MHD_response_queue_for_destroy (struct MHD_Response *response)
 
enum MHD_Bool MHD_response_add_header (struct MHD_Response *response, const char *header, const char *content)
 
enum MHD_Bool MHD_response_add_trailer (struct MHD_Response *response, const char *footer, const char *content)
 
enum MHD_Bool MHD_response_del_header (struct MHD_Response *response, const char *header, const char *content)
 
unsigned int MHD_response_get_headers (struct MHD_Response *response, MHD_KeyValueIterator iterator, void *iterator_cls)
 
const char * MHD_response_get_header (struct MHD_Response *response, const char *key)
 

Detailed Description

implementation of general response functions

Author
Daniel Pittman
Christian Grothoff
Karlson2k (Evgeny Grin)

Definition in file response.c.

Function Documentation

◆ add_response_entry()

static bool add_response_entry ( struct MHD_Response response,
enum MHD_ValueKind  kind,
const char *  header,
const char *  content 
)
static

Add a header or footer line to the response.

Parameters
responseresponse to add a header to
kindheader or footer
headerthe header to add
contentvalue to add
Returns
false on error (i.e. invalid header or content format).

Definition at line 40 of file response.c.

References MHD_Response::first_header, MHD_HTTP_Header::header, MHD_HTTP_Header::kind, MHD_HTTP_Header::next, NULL, and MHD_HTTP_Header::value.