python3: Encode ashd-wsgi3 output headers with utf-8 instead of latin-1.
[ashd.git] / src / htparser.h
CommitLineData
8774c31b
FT
1#ifndef _ASH_HTPARSER_H
2#define _ASH_HTPARSER_H
3
4struct conn {
5 int (*initreq)(struct conn *, struct hthead *);
6 void *pdata;
7};
8
cac13158
FT
9struct mtbuf {
10 struct muth **b;
11 size_t s, d;
12};
13
a68db17d 14void serve(struct bufio *in, int infd, struct conn *conn);
8774c31b 15
6ca53b2e
FT
16int listensock4(int port);
17int listensock6(int port);
7595e3a4 18char *formathaddress(struct sockaddr *name, socklen_t namelen);
8774c31b 19void handleplain(int argc, char **argp, char **argv);
6ca53b2e
FT
20#ifdef HAVE_GNUTLS
21void handlegnussl(int argc, char **argp, char **argv);
22#endif
3c5954e9
FT
23#ifdef HAVE_OPENSSL
24void handleossl(int argc, char **argp, char **argv);
25#endif
8774c31b 26
cac13158
FT
27extern struct mtbuf listeners;
28
8774c31b 29#endif