X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Freq.h;h=054d3c1d2e94859413b58c134421f7bf7d305481;hb=d9f67feaea01146d7ea10abfff2dc59ff8946ced;hp=752ff776f549a52fab34b40915164b17dadfaa01;hpb=f89ce57a7d216566b30c22f8f8accc9ab0eb5c6c;p=ashd.git diff --git a/lib/req.h b/lib/req.h index 752ff77..054d3c1 100644 --- a/lib/req.h +++ b/lib/req.h @@ -18,10 +18,12 @@ 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);