Skip to content

RuleCondition

Source code in docs_src/capo_rtbfabric/types/rule_condition.py
class RuleCondition(TypedDict, closed=True):
    host_header: NotRequired["str"]
    """<p>The exact host header value to match.</p>"""
    host_header_wildcard: NotRequired["str"]
    """<p>A wildcard pattern for host header matching (for example, <code>*.example.com</code>).</p>"""
    path_prefix: NotRequired["str"]
    """<p>The path prefix to match. The request path must start with this value. Must start with <code>/</code>.</p>"""
    path_exact: NotRequired["str"]
    """<p>The exact path to match. Must start with <code>/</code>.</p>"""
    query_string_equals: NotRequired[
        "capo_rtbfabric.types.query_string_key_value_pair.QueryStringKeyValuePair"
    ]
    """<p>A query string key-value pair that must be present and match exactly.</p>"""
    query_string_exists: NotRequired["str"]
    """<p>A query string key that must be present in the request (any value is accepted).</p>"""

host_header instance-attribute

host_header: NotRequired[str]

The exact host header value to match.

host_header_wildcard instance-attribute

host_header_wildcard: NotRequired[str]

A wildcard pattern for host header matching (for example, *.example.com).

path_exact instance-attribute

path_exact: NotRequired[str]

The exact path to match. Must start with /.

path_prefix instance-attribute

path_prefix: NotRequired[str]

The path prefix to match. The request path must start with this value. Must start with /.

query_string_equals instance-attribute

query_string_equals: NotRequired[QueryStringKeyValuePair]

A query string key-value pair that must be present and match exactly.

query_string_exists instance-attribute

query_string_exists: NotRequired[str]

A query string key that must be present in the request (any value is accepted).