-
Notifications
You must be signed in to change notification settings - Fork 10
chl_get_header
it4e edited this page Apr 16, 2016
·
2 revisions
<chl/chl.h>
chl_get_header, CHL get header
char * chl_get_header(char * name);
The chl_get_header function is used to get the header associated with the [name].
- name: the name of the header
Header value, or 0 if header is not defined.
main.c
#include <chl/chl.h>
#include <stdio.h>
int main() {
char * val;
chl_set_header("x-test", "test header");
val = chl_get_header("x-test");
fputs(val, stdout);
}
Output: test header