File: httpd.h

package info (click to toggle)
agedu 9723-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 744 kB
  • sloc: ansic: 4,551; sh: 1,033; makefile: 15
file content (17 lines) | stat: -rw-r--r-- 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * httpd.h: a minimal custom HTTP server designed to serve the
 * pages generated by html.h.
 */

#define HTTPD_AUTH_MAGIC 1
#define HTTPD_AUTH_BASIC 2
#define HTTPD_AUTH_NONE  4

struct httpd_config {
    const char *address, *port;
    int closeoneof;
    const char *basicauthdata;
};

void run_httpd(const void *t, int authmask, const struct httpd_config *dcfg,
	       const struct html_config *pcfg);