-
Notifications
You must be signed in to change notification settings - Fork 10
chl_set_header
it4e edited this page Apr 16, 2016
·
1 revision
<chl/chl.h>
chl_set_header, CHL set header
void chl_set_header(char * name, char * value);
The chl_set_header function is used to define the header [name] with the value [value].
- name: the name of the header
- value: the value of the header
No return value.
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