X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Freq.h;h=054d3c1d2e94859413b58c134421f7bf7d305481;hb=d9f67feaea01146d7ea10abfff2dc59ff8946ced;hp=9d77499d5cfa1c062f4fe45f24606507eaa184a5;hpb=5fc1bf9ffd24123e1fafbfc8b58c4338521ec0e6;p=ashd.git diff --git a/lib/req.h b/lib/req.h index 9d77499..054d3c1 100644 --- a/lib/req.h +++ b/lib/req.h @@ -17,10 +17,14 @@ 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); #endif