var searchIndex = {}; searchIndex["content_blocker"] = {"doc":"A library for parsing [Safari-style content blocking lists](https://developer.apple.com/library/ios/documentation/Extensions/Conceptual/ContentBlockingRules/CreatingRules/CreatingRules.html)\nand evaluating them against network requests.","items":[[3,"Request","content_blocker","A request that could be filtered.",null,null],[12,"url","","The requested URL.",0,null],[12,"resource_type","","The resource type for which this request was initiated.",0,null],[12,"load_type","","The relationship of this request to the originating document.",0,null],[3,"RuleList","","An encapsulation of a list of parsed rules.",null,null],[4,"Error","","Errors returned when parsing a JSON representation of a list of rules.",null,null],[13,"JSON","","A JSON parsing error occurred.",1,null],[13,"NotAList","","The root JSON object was not a list.",1,null],[4,"ResourceType","","The type of resource being requested.",null,null],[13,"Document","","A top-level document.",2,null],[13,"Image","","An image subresource.",2,null],[13,"StyleSheet","","A CSS stylesheet subresource.",2,null],[13,"Script","","A JavaScript subresource.",2,null],[13,"Font","","A web font.",2,null],[13,"Raw","","An uncategorized request (eg. XMLHttpRequest).",2,null],[13,"SVGDocument","","An SVG document.",2,null],[13,"Media","","A media resource.",2,null],[13,"Popup","","A popup resource.",2,null],[4,"LoadType","","The type of load that is being initiated.",null,null],[13,"FirstParty","","Same-origin with respect to the originating page.",3,null],[13,"ThirdParty","","Cross-origin with respect to the originating page.",3,null],[4,"Reaction","","The action to take for the provided request.",null,null],[13,"Block","","Block the request from starting.",4,null],[13,"BlockCookies","","Strip the HTTP cookies from the request.",4,null],[13,"HideMatchingElements","","Hide the elements matching the given CSS selector in the originating document.",4,null],[5,"process_rules_for_request","","Attempt to match the given request against the provided rules. Returns a list\nof actions to take in response; an empty list means that the request should\ncontinue unmodified.",null,{"inputs":[{"name":"rulelist"},{"name":"request"}],"output":{"name":"vec"}}],[5,"parse_list","","Parse a string containing a JSON representation of a content blocker list.\nReturns a vector of parsed rules, or an error representing the nature of\nthe invalid input. Any rules missing required fields will be silently ignored.",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"eq","","",1,null],[11,"fmt","","",1,null],[11,"eq","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"eq","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"fmt","","",4,null]],"paths":[[3,"Request"],[4,"Error"],[4,"ResourceType"],[4,"LoadType"],[4,"Reaction"]]}; initSearch(searchIndex);