X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Freq.h;fp=lib%2Freq.h;h=9d77499d5cfa1c062f4fe45f24606507eaa184a5;hb=5fc1bf9ffd24123e1fafbfc8b58c4338521ec0e6;hp=7fc70be2a3f7bde97353611cac723ae7e526992b;hpb=e1cdf02ebc900813c2395c58ee528440a9699e18;p=ashd.git diff --git a/lib/req.h b/lib/req.h index 7fc70be..9d77499 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,7 @@ 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); #endif