69 int alloc; |
69 int alloc; |
70 }; |
70 }; |
71 |
71 |
72 HTTPRequest *http_request_new(); |
72 HTTPRequest *http_request_new(); |
73 |
73 |
74 int handle_request(HTTPRequest *request); |
74 /* |
|
75 * starts request processing after reading the request header |
|
76 * |
|
77 * request: request object |
|
78 * pool: current thread pool or NULL |
|
79 */ |
|
80 int handle_request(HTTPRequest *request, threadpool_t *pool); |
75 |
81 |
76 |
82 |
77 |
83 |
78 void header_add(HeaderArray *hd, char *name, char *value); |
84 void header_add(HeaderArray *hd, char *name, char *value); |
79 |
85 |
84 int nsapi_authtrans(NSAPISession *sn, NSAPIRequest *rq); |
90 int nsapi_authtrans(NSAPISession *sn, NSAPIRequest *rq); |
85 int nsapi_nametrans(NSAPISession *sn, NSAPIRequest *rq); |
91 int nsapi_nametrans(NSAPISession *sn, NSAPIRequest *rq); |
86 int nsapi_pathcheck(NSAPISession *sn, NSAPIRequest *rq); |
92 int nsapi_pathcheck(NSAPISession *sn, NSAPIRequest *rq); |
87 int nsapi_objecttype(NSAPISession *sn, NSAPIRequest *rq); |
93 int nsapi_objecttype(NSAPISession *sn, NSAPIRequest *rq); |
88 int nsapi_service(NSAPISession *sn, NSAPIRequest *rq); |
94 int nsapi_service(NSAPISession *sn, NSAPIRequest *rq); |
|
95 |
|
96 int nsapi_exec(directive *d, NSAPISession *sn, NSAPIRequest *rq); |
|
97 |
|
98 int nsapi_exec_tp( |
|
99 directive *d, |
|
100 NSAPISession *sn, |
|
101 NSAPIRequest *rq, |
|
102 threadpool_t *pool); |
|
103 |
|
104 void nsapi_function_return(Session *sn, Request *rq, int ret); |
|
105 |
|
106 void nsapi_change_threadpool( |
|
107 NSAPISession *sn, |
|
108 NSAPIRequest *rq, |
|
109 threadpool_t *thrpool); |
|
110 |
|
111 void* thrpool_exec(void *d); |
|
112 |
|
113 void* thrpool_change(void *data); |
89 |
114 |
90 |
115 |
91 int add_objects( |
116 int add_objects( |
92 HTTPObjectConfig *objs, |
117 HTTPObjectConfig *objs, |
93 httpd_objset *os, |
118 httpd_objset *os, |