Modifiers¶
-
class
uwsgiconf.options.routing_modifiers.
ModifierWsgi
(submod=None)¶ Standard WSGI request followed by the HTTP request body.
-
class
uwsgiconf.options.routing_modifiers.
ModifierPsgi
(submod=None)¶ Standard PSGI request followed by the HTTP request body.
-
class
uwsgiconf.options.routing_modifiers.
ModifierLua
(submod=None)¶ Standard LUA/WSAPI request followed by the HTTP request body.
-
class
uwsgiconf.options.routing_modifiers.
ModifierRack
(submod=None)¶ Standard RACK request followed by the HTTP request body.
-
class
uwsgiconf.options.routing_modifiers.
ModifierJvm
(submod=None)¶ Standard JVM request for The JWSGI interface and The Clojure/Ring JVM request handler followed by the HTTP request body.
-
SUB_RING
= 1¶ Use Clojure/Ring JVM request handler.
-
-
class
uwsgiconf.options.routing_modifiers.
ModifierCgi
(submod=None)¶ Standard Running CGI scripts on uWSGI request followed by the HTTP request body.
-
class
uwsgiconf.options.routing_modifiers.
ModifierManage
(submod=None)¶ Management interface request: setup flag specified by
modifier2
.For a list of management flag look at
ManagementFlag
.
-
class
uwsgiconf.options.routing_modifiers.
ModifierPhp
(submod=None)¶ Standard Running PHP scripts in uWSGI request followed by the HTTP request body.
-
class
uwsgiconf.options.routing_modifiers.
ModifierMono
(submod=None)¶ Standard The Mono ASP.NET plugin request followed by the HTTP request body.
-
class
uwsgiconf.options.routing_modifiers.
ModifierSpooler
(submod=None)¶ The uWSGI Spooler request, the block vars is converted to a dictionary/hash/table and passed to the spooler callable.
-
class
uwsgiconf.options.routing_modifiers.
ModifierSymcall
(submod=None)¶ Direct call to C-like symbols.
-
class
uwsgiconf.options.routing_modifiers.
ModifierEval
(submod=None)¶ Raw Code evaluation. The interpreter is chosen by the
modifier2
...note:: It does not return a valid uwsgi response, but a raw string (that may be an HTTP response).
-
class
uwsgiconf.options.routing_modifiers.
ModifierXslt
(submod=None)¶ Invoke the The XSLT plugin.
-
class
uwsgiconf.options.routing_modifiers.
ModifierV8
(submod=None)¶ Invoke the uWSGI V8 support.
-
class
uwsgiconf.options.routing_modifiers.
ModifierGridfs
(submod=None)¶ Invoke the The GridFS plugin.
-
class
uwsgiconf.options.routing_modifiers.
ModifierFastfunc
(submod=None)¶ Call the FastFuncs specified by the
modifier2
field.
-
class
uwsgiconf.options.routing_modifiers.
ModifierGlusterfs
(submod=None)¶ Invoke the The GlusterFS plugin.
-
class
uwsgiconf.options.routing_modifiers.
ModifierRados
(submod=None)¶ Invoke the The RADOS plugin.
-
class
uwsgiconf.options.routing_modifiers.
ModifierManagePathInfo
(submod=None)¶ Standard WSGI request followed by the HTTP request body.
The
PATH_INFO
is automatically modified, removing theSCRIPT_NAME
from it.
-
class
uwsgiconf.options.routing_modifiers.
ModifierMessage
(submod=None)¶ Generic message passing (reserved).
-
class
uwsgiconf.options.routing_modifiers.
ModifierMessageArray
(submod=None)¶ Array of char passing (reserved).
-
class
uwsgiconf.options.routing_modifiers.
ModifierMessageMarshal
(submod=None)¶ Marshalled/serialzed object passing (reserved).
-
class
uwsgiconf.options.routing_modifiers.
ModifierSnmp
(submod=None)¶ Identify a SNMP request/response (mainly via UDP).
-
class
uwsgiconf.options.routing_modifiers.
ModifierRaw
(submod=None)¶ Corresponds to the
HTTP
string and signals that this is a raw HTTP response.
-
class
uwsgiconf.options.routing_modifiers.
ModifierMulticastAnnounce
(submod=None)¶ Announce message.
-
class
uwsgiconf.options.routing_modifiers.
ModifierMulticast
(submod=None)¶ Array of chars; a custom multicast message managed by uwsgi.
-
class
uwsgiconf.options.routing_modifiers.
ModifierClusterNode
(submod=None)¶ Add/remove/enable/disable node from a cluster.
Add action requires a dict of at least 3 keys:
- hostname
- address
- workers
-
class
uwsgiconf.options.routing_modifiers.
ModifierRemoteLogging
(submod=None)¶ Remote logging (clustering/multicast/unicast).
-
class
uwsgiconf.options.routing_modifiers.
ModifierReload
(submod=None)¶ Graceful reload request.
-
class
uwsgiconf.options.routing_modifiers.
ModifierReloadBrutal
(submod=None)¶ Brutal reload request.
-
class
uwsgiconf.options.routing_modifiers.
ModifierConfigFromNode
(submod=None)¶ Request configuration data from a uwsgi node (even via multicast).
-
class
uwsgiconf.options.routing_modifiers.
ModifierPing
(submod=None)¶ PING-PONG. Useful for cluster health check.
-
SUB_PING
= 0¶ Request.
-
SUB_PONG
= 1¶ Response.
-
-
class
uwsgiconf.options.routing_modifiers.
ModifierEcho
(submod=None)¶ ECHO service.
-
class
uwsgiconf.options.routing_modifiers.
ModifierLegionMsg
(submod=None)¶ Legion msg (UDP, the body is encrypted).
-
class
uwsgiconf.options.routing_modifiers.
ModifierSignal
(submod=None)¶ uwsgi_signal framework (payload is optional).
Note
modifier2
is the signal num.
-
class
uwsgiconf.options.routing_modifiers.
ModifierCache
(submod=None)¶ Cache operations.
-
SUB_GET
= 0¶ Simple cache get for values not bigger than 64k.
-
SUB_SET
= 1¶ Simple cache set for values not bigger than 64k.
-
SUB_DELETE
= 2¶ Simple cache del.
-
SUB_DICT_BASED
= 3¶ Simple dict based get command.
-
SUB_STREAM
= 5¶ Get and stream.
-
SUB_DUMP
= 6¶ Dump the whole cache.
-
SUB_MAGIC
= 17¶ Magic interface for plugins remote access.
-
-
class
uwsgiconf.options.routing_modifiers.
ModifierCorerouterSignal
(submod=None)¶ Special modifier for signaling corerouters about special conditions.
-
class
uwsgiconf.options.routing_modifiers.
ModifierRpc
(submod=None)¶ RPC. The packet is an uwsgi array where
- the first item - the name of the function
- the following - the args
-
SUB_DEFAULT
= 0¶ Return uwsgi header + rpc response.
-
SUB_RAW
= 1¶ Return raw rpc response, uwsgi header included, if available.
-
SUB_USE_PATH_INFO
= 2¶ Split PATH_INFO to get func name and args and return as HTTP response with content_type as application/binary or Accept request header (if different from *).
-
SUB_XMLRPC
= 3¶ Set xmlrpc wrapper (requires libxml2).
-
SUB_JSONRPC
= 4¶ Set jsonrpc wrapper (requires libjansson).
-
SUB_DICT
= 5¶ Used in uwsgi response to signal the response is a uwsgi dictionary followed by the body (the dictionary must contains a CONTENT_LENGTH key).
-
class
uwsgiconf.options.routing_modifiers.
ModifierPersistentClose
(submod=None)¶ Close mark for persistent connections.
-
class
uwsgiconf.options.routing_modifiers.
ModifierSubscription
(submod=None)¶ Subscription packet. See
subscriptions
.
-
class
uwsgiconf.options.routing_modifiers.
ModifierExample
(submod=None)¶ Modifier used in dummy example plugin.
-
class
uwsgiconf.options.routing_modifiers.
ModifierResponse
(submod=None)¶ Generic response. Request dependent.
Example: a spooler response set 0 for a failed spool or 1 for a successful one.