const char *name;
const char *info;
const char *query;
+ const char *auth;
bool redirected;
struct stat stat;
const struct interpreter *ip;
void (*handle_request)(struct client *cl, const char *url, struct path_info *pi);
};
-struct uh_addr {
- uint8_t family;
- uint16_t port;
- union {
- struct in_addr in;
- struct in6_addr in6;
- };
-};
-
struct client {
struct list_head list;
int id;
void uh_handle_request(struct client *cl);
void uh_auth_add(const char *path, const char *user, const char *pass);
+bool uh_auth_check(struct client *cl, struct path_info *pi);
void uh_close_listen_fds(void);
void uh_close_fds(void);