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

Name

<chl/chl.h>

chl_print_headers, CHL print headers

Declaration

void chl_print_headers();

Description

The chl_print_headers function shall output all the set headers in correct HTTP formatting.

Arguments

No arguments.

Return value

No return value.


Examples

main.c

#include <chl/chl.h>

int main() {
    char * val;
    
    chl_set_header("x-test", "test header");
    chl_set_header("x-owner", "Olof");
    
    chl_print_headers();
}

Output: x-test: test header\r\nx-owner: Olof\r\n\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