sendfile: Only allow GET and HEAD requests.
[ashd.git] / lib / resp.h
CommitLineData
d422fdfd
FT
1#ifndef _LIB_HTRESP_H
2#define _LIB_HTRESP_H
3
b008ba9e 4#include "req.h"
46e66302 5
3095582d 6char *urlquote(char *text);
121d8be9 7char *htmlquote(char *text);
d422fdfd 8void simpleerror(int fd, int code, char *msg, char *fmt, ...);
46e66302 9void stdredir(struct hthead *req, int fd, int code, char *dst);
b4164ce6
FT
10char *fmthttpdate(time_t time);
11time_t parsehttpdate(char *date);
d422fdfd
FT
12
13#endif