Added basic support for parsing requests.
[ashd.git] / lib / req.h
CommitLineData
33733396
FT
1#ifndef _LIB_HTREQ_H
2#define _LIB_HTREQ_H
3
4struct htreq {
5 char *method, *url, *ver;
6 char *restbuf, *rest;
7 char ***headers;
8 int noheaders;
9};
10
11struct htreq *mkreq(char *method, char *url, char *ver);
12void freereq(struct htreq *req);
66987955 13char *getheader(struct htreq *req, char *name);
33733396
FT
14void reqpreheader(struct htreq *req, char *name, char *val);
15void reqappheader(struct htreq *req, char *name, char *val);
16
17#endif