87 return S("/"); |
87 return S("/"); |
88 } |
88 } |
89 |
89 |
90 int handle_request(HTTPRequest *request, threadpool_t *thrpool) { |
90 int handle_request(HTTPRequest *request, threadpool_t *thrpool) { |
91 // handle nsapi request |
91 // handle nsapi request |
92 |
92 |
93 // create pool |
93 // create pool |
94 pool_handle_t *pool = pool_create(); |
94 pool_handle_t *pool = pool_create(); |
95 |
95 |
96 // create nsapi data structures |
96 // create nsapi data structures |
97 NSAPISession *sn = pool_malloc(pool, sizeof(NSAPISession)); |
97 NSAPISession *sn = pool_malloc(pool, sizeof(NSAPISession)); |