Subjects
Classes
SubjectCustom
| SubjectCustom(subject: Var | str, negate: bool = False)
|
ParametrizedValue
Represents a routing subject that supports various check.
alias
Alias to address this value.
name
Name to represent the group.
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.
contains
Check if the subject contains the specified pattern.
contains_ipv4
Check if the subject is ip v4.
contains_ipv6
Check if the subject is ip v6.
endswith
Check if the subject ends with the specified pattern.
eq
Check if the subject is equal to the specified pattern.
exists
Check if the subject exists in the filesystem.
ge
Check if the subject is greater than or equal to the specified pattern.
gt
Check if the subject is greater than the specified pattern.
isdir
Check if the subject is a directory.
isempty
Check if the subject is empty.
isexec
Check if the subject is an executable file.
isfile
Check if the subject is a file.
islink
Check if the subject is a link.
islord
Check if the subject is a Legion Lord.
le
Check if the subject is less than or equal to the specified pattern.
lt
Check if the subject is less than the specified pattern.
matches
Check if the subject matches the specified regexp.
startswith
Check if the subject starts with the specified pattern.
SubjectHttpHost
SubjectHttpReferer
| SubjectHttpReferer(regexp)
|
SubjectBuiltin
Checks HTTP_REFERER for a value.
SubjectHttpUserAgent
| SubjectHttpUserAgent(regexp)
|
SubjectBuiltin
Checks HTTP_USER_AGENT for a value.
SubjectPathInfo
SubjectQueryString
| SubjectQueryString(regexp)
|
SubjectBuiltin
Checks QUERY_STRING for a value.
SubjectRemoteAddr
| SubjectRemoteAddr(regexp)
|
SubjectBuiltin
Checks REMOTE_ADDR for a value.
SubjectRemoteUser
| SubjectRemoteUser(regexp)
|
SubjectBuiltin
Checks REMOTE_USER for a value.
SubjectRequestUri
| SubjectRequestUri(regexp)
|
SubjectBuiltin
Checks REQUEST_URI for a value.
SubjectStatus
SubjectBuiltin
Checks HTTP response status code.
Warning
Not available in the request chain.