diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-03-13 21:25:06 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-03-13 21:25:06 +0000 |
commit | a830af509760d99d6ea2d30e8a848795ad97e2cc (patch) | |
tree | 6e457bb2b1348ced8efe03d6c531e7495ca21645 /src/htmlerror.h | |
parent | d28d9fb1957d0f3d2ddab425997de2d32ca1302f (diff) | |
download | tinyproxy-a830af509760d99d6ea2d30e8a848795ad97e2cc.tar.gz tinyproxy-a830af509760d99d6ea2d30e8a848795ad97e2cc.zip |
# Steve Young's code to implement file based HTML error messages,
rather than the hard coded string.
Diffstat (limited to '')
-rw-r--r-- | src/htmlerror.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/htmlerror.h b/src/htmlerror.h new file mode 100644 index 0000000..705faaa --- /dev/null +++ b/src/htmlerror.h @@ -0,0 +1,20 @@ +/* $Id: htmlerror.h,v 1.1 2003-03-13 21:25:04 rjkaes Exp $ + * + * Contains header declarations for the HTML error functions in htmlerror.c + */ + +#ifndef TINYPROXY_HTMLERROR_H +#define TINYPROXY_HTMLERROR_H + +/* Forward declaration */ +struct conn_s; + +extern int add_new_errorpage(char *filepath, unsigned int errornum); +extern int send_http_error_message(struct conn_s *connptr); +extern int indicate_http_error(struct conn_s *connptr, int number, char *message, ...); +extern int add_error_variable(struct conn_s *connptr, char *key, char *val); +extern int send_html_file(FILE *infile, struct conn_s *connptr); +extern int send_http_headers(struct conn_s *connptr, int code, char *message); +extern int add_standard_vars(struct conn_s *connptr); + +#endif /* !TINYPROXY_HTMLERROR_H */ |