Skip to content

ResponseInspectionBodyContains

Source code in docs_src/capo_wafv2/types/response_inspection_body_contains.py
class ResponseInspectionBodyContains(TypedDict, closed=True):
    success_strings: "capo_wafv2.types.response_inspection_body_contains_success_strings.ResponseInspectionBodyContainsSuccessStrings"
    """<p>Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings. </p> <p>JSON examples: <code>"SuccessStrings": [ "Login successful" ]</code> and <code>"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]</code> </p>"""
    failure_strings: "capo_wafv2.types.response_inspection_body_contains_failure_strings.ResponseInspectionBodyContainsFailureStrings"
    """<p>Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings. </p> <p>JSON example: <code>"FailureStrings": [ "Request failed" ]</code> </p>"""

failure_strings instance-attribute

Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.

JSON example: "FailureStrings": [ "Request failed" ]

success_strings instance-attribute

Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.

JSON examples: "SuccessStrings": [ "Login successful" ] and "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]