#include <cgi/cgi_config.h>
Data Structures | |
| struct | s_http_header |
| HTTP header structure. More... | |
Functions | |
| struct s_http_header * | header_add (struct s_cgi_context *ctx, char *name, char *value) |
| Add new header with given value. | |
| struct s_http_header * | header_set (struct s_cgi_context *ctx, char *name, char *value) |
| Set the header value. | |
| struct s_http_header * | header_get (struct s_cgi_context *ctx, char *name) |
| Get header. | |
| void | headers_out (struct s_cgi_context *ctx) |
| Force output of headers. | |
HTTP headers handling functions.
| struct s_http_header* header_add | ( | t_cgi_context * | ctx, | |
| char * | name, | |||
| char * | value | |||
| ) | [read] |
Add new header with given value.
Adds new header with given value. Header is added even if header with such name already exist.
| ctx | pointer to existing CGI context (t_cgi_context *). | |
| name | header name. | |
| value | header value. |
| struct s_http_header* header_get | ( | t_cgi_context * | ctx, | |
| char * | name | |||
| ) | [read] |
Get header.
Returns header structure.
| ctx | pointer to existing CGI context (t_cgi_context *). | |
| name | header name. |
| struct s_http_header* header_set | ( | t_cgi_context * | ctx, | |
| char * | name, | |||
| char * | value | |||
| ) | [read] |
Set the header value.
Sets value of header. If header already exists, overwrites it.
| ctx | pointer to existing CGI context (t_cgi_context *). | |
| name | header name. | |
| value | header value. |
| void headers_out | ( | t_cgi_context * | ctx | ) |
Force output of headers.
Forces output of headers, even when they are already sent. Normally, they are sent automatically if you use libcgic streams library.
| ctx | pointer to existing CGI context (t_cgi_context *). |
1.5.5