Mercurial > urweb
annotate include/request.h @ 854:158d980889ac
Further refactoring of request.c to work with CGI
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 23 Jun 2009 15:40:35 -0400 |
parents | 19fdeef40ada |
children | 86ec89baee01 |
rev | line source |
---|---|
adamc@853 | 1 #ifndef REQUEST_H |
adamc@853 | 2 #define REQUEST_H |
adamc@853 | 3 |
adamc@853 | 4 #include <sys/types.h> |
adamc@853 | 5 |
adamc@853 | 6 #include "types.h" |
adamc@853 | 7 |
adamc@853 | 8 typedef struct uw_rc *uw_request_context; |
adamc@853 | 9 |
adamc@853 | 10 void uw_request_init(void); |
adamc@853 | 11 void uw_sign(const char *in, char *out); |
adamc@853 | 12 |
adamc@853 | 13 uw_request_context uw_new_request_context(void); |
adamc@853 | 14 void uw_free_request_context(uw_request_context); |
adamc@853 | 15 |
adamc@854 | 16 request_result uw_request(uw_request_context, uw_context, |
adamc@854 | 17 char *method, char *path, char *query_string, |
adamc@854 | 18 char *body, size_t body_len, |
adamc@854 | 19 int sock); |
adamc@853 | 20 |
adamc@853 | 21 uw_context uw_request_new_context(void); |
adamc@853 | 22 |
adamc@853 | 23 void *client_pruner(void *data); |
adamc@853 | 24 |
adamc@853 | 25 #endif |