Skip to content
it4e edited this page Apr 16, 2016 · 1 revision

Name

<chl/chl.h>

chl_set_header, CHL set header

Declaration

void chl_set_header(char * name, char * value);

Description

The chl_set_header function is used to define the header [name] with the value [value].

Arguments

  • name: the name of the header
  • value: the value of the header

Return value

No return value.


Examples

main.c

#include <chl/chl.h>
#include <stdio.h>

int main() {
    char * val;

    chl_set_header("x-test", "My name is Olof");
    val = chl_get_header("x-test");

    fputs(val, stdout);
}

Output: My name is Olof

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