-
Notifications
You must be signed in to change notification settings - Fork 10
chl_print_headers
it4e edited this page Apr 16, 2016
·
1 revision
<chl/chl.h>
chl_print_headers, CHL print headers
void chl_print_headers();
The chl_print_headers function shall output all the set headers in correct HTTP formatting.
No arguments.
No return value.
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