fn early_block(idata: IData, action: Action) -> (Decision, Tags, RequestInfo) {
    let mut logs = idata.logs;
    let secpolicy = idata.secpol;
    let rawrequest = RawRequest {
        ipstr: extract_ip(idata.trusted_hops as usize, &idata.headers),
        headers: idata.headers,
        meta: idata.meta,
        mbody: idata.body.as_deref(),
    };
    let reqinfo = map_request(
        &mut logs,
        &secpolicy.content_filter_profile.decoding,
        &secpolicy.content_filter_profile.content_type,
        0,
        &rawrequest,
    );
    (Decision::Action(action), Tags::default(), reqinfo)
}
/// called when the content filter policy is violated
/// no tags are returned though!
called when the content filter policy is violated
no tags are returned though!
called when the content filter policy is violated no tags are returned though!
fn early_block(idata: IData, action: Action) -> (Decision, Tags, RequestInfo) {
    let mut logs = idata.logs;
    let secpolicy = idata.secpol;
    let rawrequest = RawRequest {
        ipstr: extract_ip(idata.trusted_hops as usize, &idata.headers),
        headers: idata.headers,
        meta: idata.meta,
        mbody: idata.body.as_deref(),
    };
    let reqinfo = map_request(
        &mut logs,
        &secpolicy.content_filter_profile.decoding,
        &secpolicy.content_filter_profile.content_type,
        0,
        &rawrequest,
    );
    (Decision::Action(action), Tags::default(), reqinfo)
}
fn early_block ( idata : IData , action : Action ) -> ( Decision , Tags , RequestInfo ) { let mut logs = idata . logs ; let secpolicy = idata . secpol ; let rawrequest = RawRequest { ipstr : extract_ip ( idata . trusted_hops as usize , & idata . headers ) , headers : idata . headers , meta : idata . meta , mbody : idata . body . as_deref ( ) , } ; let reqinfo = map_request ( & mut logs , & secpolicy . content_filter_profile . decoding , & secpolicy . content_filter_profile . content_type , 0 , & rawrequest , ) ; ( Decision :: Action ( action ) , Tags :: default ( ) , reqinfo ) }
called when the content filter policy is violated
no tags are returned though!
called when the content filter policy is violated no tags are returned though!
idata
IData
action
Action