Skip to content

Modifiers

Classes

ModifierCache

ModifierCache(submod=None)

Modifier

Cache operations.


SUB_DELETE

.SUB_DELETE = 2

Simple cache del.


SUB_DICT_BASED

.SUB_DICT_BASED = 3

Simple dict based get command.


SUB_DUMP

.SUB_DUMP = 6

Dump the whole cache.


SUB_GET

.SUB_GET = 0

Simple cache get for values not bigger than 64k.


SUB_MAGIC

.SUB_MAGIC = 17

Magic interface for plugins remote access.


SUB_SET

.SUB_SET = 1

Simple cache set for values not bigger than 64k.


SUB_STREAM

.SUB_STREAM = 5

Get and stream.


ModifierCgi

ModifierCgi(submod=None)

Modifier

Standard Running CGI scripts on uWSGI request followed by the HTTP request body.


ModifierClusterNode

ModifierClusterNode(submod=None)

Modifier

Add/remove/enable/disable node from a cluster.

Add action requires a dict of at least 3 keys:

1
2
3
* hostname
* address
* workers

ModifierConfigFromNode

ModifierConfigFromNode(submod=None)

Modifier

Request configuration data from a uwsgi node (even via multicast).


ModifierCorerouterSignal

ModifierCorerouterSignal(submod=None)

Modifier

Special modifier for signaling corerouters about special conditions.


ModifierEcho

ModifierEcho(submod=None)

Modifier

ECHO service.


ModifierEval

ModifierEval(submod=None)

Modifier

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).


ModifierExample

ModifierExample(submod=None)

Modifier

Modifier used in dummy example plugin.


ModifierFastfunc

ModifierFastfunc(submod=None)

Modifier

Call the FastFuncs specified by the modifier2 field.


ModifierGlusterfs

ModifierGlusterfs(submod=None)

Modifier

Invoke the The GlusterFS plugin.


ModifierGridfs

ModifierGridfs(submod=None)

Modifier

Invoke the The GridFS plugin.


ModifierJvm

ModifierJvm(submod=None)

Modifier

Standard JVM request for The JWSGI interface and The Clojure/Ring JVM request handler followed by the HTTP request body.


SUB_RING

.SUB_RING = 1

Use Clojure/Ring JVM request handler.


ModifierLegionMsg

ModifierLegionMsg(submod=None)

Modifier

Legion msg (UDP, the body is encrypted).


ModifierLua

ModifierLua(submod=None)

Modifier

Standard LUA/WSAPI request followed by the HTTP request body.


ModifierManage

ModifierManage(submod=None)

Modifier

Management interface request: setup flag specified by modifier2.

For a list of management flag look at ManagementFlag.


ModifierManagePathInfo

ModifierManagePathInfo(submod=None)

Modifier

Standard WSGI request followed by the HTTP request body.

The PATH_INFO is automatically modified, removing the SCRIPT_NAME from it.


ModifierMessage

ModifierMessage(submod=None)

Modifier

Generic message passing (reserved).


ModifierMessageArray

ModifierMessageArray(submod=None)

Modifier

Array of char passing (reserved).


ModifierMessageMarshal

ModifierMessageMarshal(submod=None)

Modifier

Marshalled/serialzed object passing (reserved).


ModifierMono

ModifierMono(submod=None)

Modifier

Standard The Mono ASP.NET plugin request followed by the HTTP request body.


ModifierMulticast

ModifierMulticast(submod=None)

Modifier

Array of chars; a custom multicast message managed by uwsgi.


ModifierMulticastAnnounce

ModifierMulticastAnnounce(submod=None)

Modifier

Announce message.


ModifierPersistentClose

ModifierPersistentClose(submod=None)

Modifier

Close mark for persistent connections.


ModifierPhp

ModifierPhp(submod=None)

Modifier

Standard Running PHP scripts in uWSGI request followed by the HTTP request body.


ModifierPing

ModifierPing(submod=None)

Modifier

PING-PONG. Useful for cluster health check.


SUB_PING

.SUB_PING = 0

Request.


SUB_PONG

.SUB_PONG = 1

Response.


ModifierPsgi

ModifierPsgi(submod=None)

Modifier

Standard PSGI request followed by the HTTP request body.


ModifierRack

ModifierRack(submod=None)

Modifier

Standard RACK request followed by the HTTP request body.


ModifierRados

ModifierRados(submod=None)

Modifier

Invoke the The RADOS plugin.


ModifierRaw

ModifierRaw(submod=None)

Modifier

Corresponds to the HTTP string and signals that this is a raw HTTP response.


ModifierReload

ModifierReload(submod=None)

Modifier

Graceful reload request.


ModifierReloadBrutal

ModifierReloadBrutal(submod=None)

ModifierReload

Brutal reload request.


ModifierRemoteLogging

ModifierRemoteLogging(submod=None)

Modifier

Remote logging (clustering/multicast/unicast).


ModifierResponse

ModifierResponse(submod=None)

Modifier

Generic response. Request dependent.

Example: a spooler response set 0 for a failed spool or 1 for a successful one.


ModifierRpc

ModifierRpc(submod=None)

Modifier

RPC. The packet is an uwsgi array where

  • the first item - the name of the function
  • the following - the args

SUB_DEFAULT

.SUB_DEFAULT = 0

Return uwsgi header + rpc response.


SUB_DICT

.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).


SUB_JSONRPC

.SUB_JSONRPC = 4

Set jsonrpc wrapper (requires libjansson).


SUB_RAW

.SUB_RAW = 1

Return raw rpc response, uwsgi header included, if available.


SUB_USE_PATH_INFO

.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

.SUB_XMLRPC = 3

Set xmlrpc wrapper (requires libxml2).


ModifierSignal

ModifierSignal(submod=None)

Modifier

uwsgi_signal framework (payload is optional).

Note

modifier2 is the signal num.


ModifierSnmp

ModifierSnmp(submod=None)

Modifier

Identify a SNMP request/response (mainly via UDP).


ModifierSpooler

ModifierSpooler(submod=None)

Modifier

The uWSGI Spooler request, the block vars is converted to a dictionary/hash/table and passed to the spooler callable.


ModifierSubscription

ModifierSubscription(submod=None)

Modifier

Subscription packet. See subscriptions.


ModifierSymcall

ModifierSymcall(submod=None)

Modifier

Direct call to C-like symbols.


ModifierV8

ModifierV8(submod=None)

Modifier

Invoke the uWSGI V8 support.


ModifierWsgi

ModifierWsgi(submod=None)

Modifier

Standard WSGI request followed by the HTTP request body.


ModifierXslt

ModifierXslt(submod=None)

Modifier

Invoke the XSLT plugin.