X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Freq.h;h=71a7a06d37ffdc2c36e369e221751d9565e6714d;hb=fa88545551d709cdff26b5421bd69ac6b1af7e3b;hp=a5e50bab64fdf0c9bdac0204e06cb639a03328df;hpb=1604c0967129b4b348f3c6150f5a2c87f780e404;p=ashd.git diff --git a/lib/req.h b/lib/req.h index a5e50ba..71a7a06 100644 --- a/lib/req.h +++ b/lib/req.h @@ -17,10 +17,12 @@ 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 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);