[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.3 Adding headers to a response

Function: int MHD_add_response_header (struct MHD_Response *response, const char *header, const char *content)

Add a header line to the response. The strings referenced by header and content must be zero-terminated and they are duplicated into memory blocks embedded in response.

Notice that the strings must not hold newlines, carriage returns or tab chars.

Return MHD_NO on error (i.e. invalid header or content format or memory allocation error).

Function: int MHD_del_response_header (struct MHD_Response *response, const char *header, const char *content)

Delete a header line from the response. Return MHD_NO on error (arguments are invalid or no such header known).


This document was generated by Christian Grothoff on November, 16 2008 using texi2html 1.78.