mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 04:31:44 +00:00
introducing raw mode
This commit is contained in:
@@ -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");\
|
||||
|
||||
Reference in New Issue
Block a user