Actions
Classes
ActionAddVarCgi
| ActionAddVarCgi(name, val)
|
RouteAction
Add the specified CGI (environment) variable to the request.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionAddVarLog
| ActionAddVarLog(name, val)
|
RouteAction
Add the specified logvar.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionAlarm
| ActionAlarm(name, message)
|
RouteAction
Triggers an alarm.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionAuthBasic
| ActionAuthBasic(
realm,
user=None,
password=None,
do_next=False
)
|
RouteAction
Use Basic HTTP Auth.
alias
Alias to address this value.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
ActionChunked
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionDirChange
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionDoBreak
| ActionDoBreak(code, return_body=False)
|
RouteAction
Stop scanning the internal routing table and close the request.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionDoContinue
RouteAction
Stop scanning the internal routing table
and continue to the selected request handler.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionDoGoto
RouteAction
Make a forward jump to the specified label or rule position.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionFixContentLen
| ActionFixContentLen(add_header=False)
|
RouteAction
Fixes Content-length header.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionFixVarPathInfo
RouteAction
Fixes PATH_INFO taking into account script name.
This action allows you to set SCRIPT_NAME in nginx without bothering
to rewrite the PATH_INFO (something nginx cannot afford).
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionFlush
RouteAction
Send the current contents of the transformation buffer
to the client (without clearing the buffer).
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionGzip
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
| ActionHeaderAdd(name, val)
|
RouteAction
Add the specified HTTP header to the response.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
RouteAction
Remove the specified HTTP header from the response.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
RouteAction
Clear the response headers, setting a new HTTP status code,
useful for resetting a response.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionLog
RouteAction
Print the specified message in the logs or
do not log a request is message is None.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionOffloadOff
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionRedirect
| ActionRedirect(url, permanent=False)
|
RouteAction
Return a HTTP 301/302 Redirect to the specified URL.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
ActionRewrite
| ActionRewrite(rule, do_continue=False)
|
RouteAction
A rewriting engine inspired by Apache mod_rewrite.
Rebuild PATH_INFO and QUERY_STRING according to the specified rules
before the request is dispatched to the request handler.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
ActionRouteExternal
| ActionRouteExternal(address, host_header=None)
|
RouteAction
Route the request to an external HTTP server.
alias
Alias to address this value.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
ActionRouteUwsgi
| ActionRouteUwsgi(external_address='', modifier='', app='')
|
RouteAction
Rewrite the modifier1, modifier2 and optionally UWSGI_APPID values of a request
or route the request to an external uwsgi server.
alias
Alias to address this value.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
ActionSend
| ActionSend(data, crnl: bool = False)
|
RouteAction
Extremely advanced (and dangerous) function allowing you
to add raw data to the response.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionServeStatic
| ActionServeStatic(fpath: Strpath)
|
RouteAction
Serve a static file from the specified physical path.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
ActionSetHarakiri
| ActionSetHarakiri(timeout)
|
RouteAction
Set harakiri timeout for the current request.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetScriptFile
| ActionSetScriptFile(fpath: Strpath)
|
RouteAction
Set script file.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetUwsgiProcessName
| ActionSetUwsgiProcessName(name)
|
RouteAction
Set uWSGI process name.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarDocumentRoot
| ActionSetVarDocumentRoot(value)
|
RouteAction
Set DOCUMENT_ROOT
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarPathInfo
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarRemoteAddr
| ActionSetVarRemoteAddr(value)
|
RouteAction
Set REMOTE_ADDR
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarRemoteUser
| ActionSetVarRemoteUser(user)
|
RouteAction
Set REMOTE_USER
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarRequestMethod
| ActionSetVarRequestMethod(name)
|
RouteAction
Set REQUEST_METHOD
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarRequestUri
| ActionSetVarRequestUri(value)
|
RouteAction
Set REQUEST_URI
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarScriptName
| ActionSetVarScriptName(name)
|
RouteAction
Set SCRIPT_NAME
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarUwsgiAppid
| ActionSetVarUwsgiAppid(app)
|
RouteAction
Set UWSGI_APPID.
Bypass SCRIPT_NAME and VirtualHosting to let the user choose
the mountpoint without limitations (or headaches).
The concept is very generic: UWSGI_APPID is the identifier of an application.
If it is not found in the internal list of apps, it will be loaded.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarUwsgiHome
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSetVarUwsgiScheme
| ActionSetVarUwsgiScheme(value)
|
RouteAction
Set UWSGI_SCHEME.
Set the URL scheme when it cannot be reliably determined.
This may be used to force HTTPS (with the value https), for instance.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionSignal
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionTemplate
RouteAction
Allows using a template file to expose everything
from internal routing system into it.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
ActionToFile
| ActionToFile(filename, mode=None)
|
RouteAction
Used for caching a response buffer into a static file.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
ActionUpper
RouteAction
Transforms each character in uppercase.
Mainly as an example of transformation plugin.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
AuthLdap
| AuthLdap(
realm,
address,
base_dn=None,
bind_dn=None,
bind_password=None,
filter=None,
login_attr=None,
log_level=None,
do_next=False
)
|
RouteAction
Use Basic HTTP Auth.
alias
Alias to address this value.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.