Commit | Line | Data |
---|---|---|
33733396 FT |
1 | #ifndef _LIB_HTREQ_H |
2 | #define _LIB_HTREQ_H | |
3 | ||
4 | struct htreq { | |
5 | char *method, *url, *ver; | |
6 | char *restbuf, *rest; | |
7 | char ***headers; | |
8 | int noheaders; | |
9 | }; | |
10 | ||
11 | struct htreq *mkreq(char *method, char *url, char *ver); | |
12 | void freereq(struct htreq *req); | |
66987955 | 13 | char *getheader(struct htreq *req, char *name); |
33733396 FT |
14 | void reqpreheader(struct htreq *req, char *name, char *val); |
15 | void reqappheader(struct htreq *req, char *name, char *val); | |
16 | ||
17 | #endif |