> Hi, > > I have chatted with some of you on IRC, but > today's DDoS on FreeNode made me resort to the list :P > > So basically I'm writting a C++/Qt web framework, and > because uWSGI allows me to get all uWSGI goodies > without worrying to create parsers I created a plugin. > > It's almost done thanks to some people on IRC but > I still have two issues, how do I iterate over > wsgi_request->headers (trying to access any struct > member crashes the app),
This pointer holds the currently built response headers, why you need to access it ? > and how should I handle loading application > on init_apps(), by this I unsure because this method > doesn't have arguments and so from where could > I get the path to the apps to load. you should initialize your application in that hook (not in the ->init() one that is used to generically initialize the plugin). In init_apps() hook you shoud have (generally at the end): // get the current app id int id = uwsgi_apps_cnt; // register a new app under a specific "mountpoint" uwsgi_add_app(id, your_plugin.modifier1, "", 0, NULL, NULL); // if in lazy-apps mode, fix it uwsgi_emulate_cow_for_apps(id); -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
