X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Freq.h;h=a5e50bab64fdf0c9bdac0204e06cb639a03328df;hb=13975be5892675874bea8c86d7d8140f5790e7e6;hp=7fc70be2a3f7bde97353611cac723ae7e526992b;hpb=af34331c8aae9bacdae3655546b2fb6eb2fbe23f;p=ashd.git diff --git a/lib/req.h b/lib/req.h index 7fc70be..a5e50ba 100644 --- a/lib/req.h +++ b/lib/req.h @@ -1,6 +1,8 @@ #ifndef _LIB_HTREQ_H #define _LIB_HTREQ_H +#include + struct hthead { char *method, *url, *ver, *msg; int code; @@ -18,5 +20,8 @@ void headappheader(struct hthead *head, const char *name, const char *val); 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); +int writeresp(FILE *out, struct hthead *resp); +char *unquoteurl(char *in); #endif