[][src]Function zap_api::authorization::set_basic_authorization_detection_method

pub fn set_basic_authorization_detection_method(
    service: &ZapService,
    contextid: String,
    headerregex: String,
    bodyregex: String,
    statuscode: String,
    logicaloperator: String
) -> Result<Value, ZapApiError>

Sets the authorization detection method for a context as one that identifies un-authorized messages based on: the message's status code or a regex pattern in the response's header or body. Also, whether all conditions must match or just some can be specified via the logicalOperator parameter, which accepts two values: "AND" (default), "OR".