X-Git-Url: http://dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=lib%2Freq.h;h=9ae60ab4ef1a568bde61bc47b6d04d346b65767f;hp=054d3c1d2e94859413b58c134421f7bf7d305481;hb=e7bdd59acaca36a9a2dea95716abf454e35cf127;hpb=5b615ac8adc0cacac54629eeb2dad3a31112243e diff --git a/lib/req.h b/lib/req.h index 054d3c1..9ae60ab 100644 --- a/lib/req.h +++ b/lib/req.h @@ -3,6 +3,8 @@ #include +struct bufio; + struct hthead { char *method, *url, *ver, *msg; int code; @@ -23,8 +25,11 @@ 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 parseheadersb(struct hthead *head, struct bufio *in); struct hthead *parseresponse(FILE *in); +struct hthead *parseresponseb(struct bufio *in); int writeresp(FILE *out, struct hthead *resp); +int writerespb(struct bufio *out, struct hthead *resp); char *unquoteurl(char *in); #endif