5 char *method, *url, *ver, *msg;
12 struct hthead *mkreq(char *method, char *url, char *ver);
13 struct hthead *mkresp(int code, char *msg, char *ver);
14 void freehthead(struct hthead *head);
15 char *getheader(struct hthead *head, char *name);
16 void headpreheader(struct hthead *head, const char *name, const char *val);
17 void headappheader(struct hthead *head, const char *name, const char *val);
18 int sendreq(int sock, struct hthead *req, int fd);
19 int recvreq(int sock, struct hthead **reqp);
20 void replrest(struct hthead *head, char *rest);