lib: Added variants of sendfd and sendreq that take sendmsg flags.
[ashd.git] / lib / req.h
index a5e50ba..054d3c1 100644 (file)
--- a/lib/req.h
+++ b/lib/req.h
@@ -17,10 +17,13 @@ void freehthead(struct hthead *head);
 char *getheader(struct hthead *head, char *name);
 void headpreheader(struct hthead *head, const char *name, const char *val);
 void headappheader(struct hthead *head, const char *name, const char *val);
+void headrmheader(struct hthead *head, const char *name);
+int sendreq2(int sock, struct hthead *req, int fd, int flags);
 int sendreq(int sock, struct hthead *req, int fd);
 int recvreq(int sock, struct hthead **reqp);
 void replrest(struct hthead *head, char *rest);
 int parseheaders(struct hthead *head, FILE *in);
+struct hthead *parseresponse(FILE *in);
 int writeresp(FILE *out, struct hthead *resp);
 char *unquoteurl(char *in);