lib: Made simpleerror callable with stdio handles as well as FDs.
[ashd.git] / lib / resp.h
1 #ifndef _LIB_HTRESP_H
2 #define _LIB_HTRESP_H
3
4 #include "req.h"
5
6 char *urlquote(char *text);
7 char *htmlquote(char *text);
8 void simpleerror(int fd, int code, char *msg, char *fmt, ...);
9 void simpleerror2(FILE *out, int code, char *msg, char *fmt, ...);
10 void stdredir(struct hthead *req, int fd, int code, char *dst);
11 char *fmthttpdate(time_t time);
12 time_t parsehttpdate(char *date);
13
14 #endif