mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 14:11:46 +00:00
Change uwsgi.input_object() to uwsgi.request_context().
and change the `uwsgi.websocket_send/send_binary/recv/recv_nb` keyword argument from `uwsgi_input` to `request_context`
This commit is contained in:
@@ -105,12 +105,12 @@ typedef struct uwsgi_Input {
|
||||
// get this object in python,
|
||||
// and pass back to uwsgi.
|
||||
// uwsgi verify whether this is a valid `struct wsgi_request *` pointer
|
||||
typedef struct uwsgi_InputIdentity {
|
||||
typedef struct uwsgi_RequestContext {
|
||||
PyObject_HEAD
|
||||
int mywid;
|
||||
uint64_t requests;
|
||||
struct wsgi_request *wsgi_req;
|
||||
} uwsgi_InputIdentity;
|
||||
} uwsgi_RequestContext;
|
||||
|
||||
|
||||
struct uwsgi_python {
|
||||
@@ -320,7 +320,7 @@ void uwsgi_python_set_thread_name(int);
|
||||
return PyErr_Format(PyExc_SystemError, "you can call uwsgi api function only from the main callable");\
|
||||
}
|
||||
|
||||
struct wsgi_request *py_current_wsgi_req_from_input(PyObject *);
|
||||
struct wsgi_request *py_current_wsgi_req_from_context(PyObject *);
|
||||
|
||||
#define uwsgi_pyexit {PyErr_Print();exit(1);}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user