pub(crate) fn apply(&self, request: Request) -> Request {
        for quirk in &self.quirks {
            if quirk.pattern.is_match(request.url().as_str()) {
                return (quirk.rewrite)(request);
            }
        }
        // Request was not modified
        request
    }
/// Apply quirks to a given request. Only the first quirk regex pattern
/// matching the URL will be applied. The rest will be discarded for
/// simplicity reasons. This limitation might be lifted in the future.
Apply quirks to a given request. Only the first quirk regex pattern
matching the URL will be applied. The rest will be discarded for
simplicity reasons. This limitation might be lifted in the future.
Apply quirks to a given request . Only the first quirk regex pattern matching the URL will be applied . The rest will be discarded for simplicity reasons . This limitation might be lifted in the future .
pub(crate) fn apply(&self, request: Request) -> Request {
        for quirk in &self.quirks {
            if quirk.pattern.is_match(request.url().as_str()) {
                return (quirk.rewrite)(request);
            }
        }
        // Request was not modified
        request
    }
pub ( crate ) fn apply ( & self , request : Request ) -> Request { for quirk in & self . quirks { if quirk . pattern . is_match ( request . url ( ) . as_str ( ) ) { return ( quirk . rewrite ) ( request ) ; } } // Request was not modified request }
Apply quirks to a given request.
Apply quirks to a given request .
&self
request
Request