Skip to content

chl_set_default_headers

it4e edited this page Apr 16, 2016 · 1 revision

Name

<chl/chl.h>

chl_set_default_headers, CHL set default headers

Declaration

void chl_set_default_headers();

Description

The chl_set_default_headers function is used to define some default HTTP headers.

Default headers:

  • Content-type: text/html
  • X-Powered-By: some_chl_version_val

Arguments

No arguments.

Return value

No return value.


Examples

main.c

#include <chl/chl.h>

int main() {
    chl_set_default_headers();
    chl_print_headers();
}

Output: .... Content-type: text/html\r\n ......

As CHL is open-source, people are able to contribute with their own APIs, plugins and code which means that CHL is constantly upgraded and provided with new features. Do you have an idea for a new CHL feature and want to contribute?

See contribute.

Setup. API. Tutorial. Examples. FastCGI.

Clone this wiki locally