introducing raw mode

This commit is contained in:
Unbit
2013-09-30 13:43:13 +02:00
parent ba03837e29
commit 23b3d7483f
10 changed files with 73 additions and 7 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
#include "../../uwsgi.h"
#include <uwsgi.h>
#include <Python.h>
#include <frameobject.h>
@@ -181,6 +181,9 @@ struct uwsgi_python {
char *programname;
int wsgi_strict;
char *raw;
PyObject *raw_callable;
};
@@ -277,6 +280,8 @@ struct uwsgi_buffer *uwsgi_python_exception_repr(struct wsgi_request *);
struct uwsgi_buffer *uwsgi_python_backtrace(struct wsgi_request *);
void uwsgi_python_exception_log(struct wsgi_request *);
int uwsgi_request_python_raw(struct wsgi_request *);
#define py_current_wsgi_req() current_wsgi_req();\
if (!wsgi_req) {\
return PyErr_Format(PyExc_SystemError, "you can call uwsgi api function only from the main callable");\