aboutsummaryrefslogtreecommitdiff
path: root/query.h
blob: 6a4c1cc83f03b29c67d52ac09e2f5306ff4605df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define TRUNCATED(s) s[-1]

struct query{
	int method;
	int length; /* Content length. */
	char *string;
} query;

enum method{
	GET,
	POST
};

char *nextparam(enum method, int *, int);
void setquery(void);
char *split(char *);