7 char *method, *url, *ver, *msg;
14 struct hthead *mkreq(char *method, char *url, char *ver);
15 struct hthead *mkresp(int code, char *msg, char *ver);
16 void freehthead(struct hthead *head);
17 char *getheader(struct hthead *head, char *name);
18 void headpreheader(struct hthead *head, const char *name, const char *val);
19 void headappheader(struct hthead *head, const char *name, const char *val);
20 void headrmheader(struct hthead *head, const char *name);
21 int sendreq(int sock, struct hthead *req, int fd);
22 int recvreq(int sock, struct hthead **reqp);
23 void replrest(struct hthead *head, char *rest);
24 int parseheaders(struct hthead *head, FILE *in);
25 int writeresp(FILE *out, struct hthead *resp);
26 char *unquoteurl(char *in);