class

Detector::Specification::Har

Inherits Detector < Reference < Object

Constants

ENTRIES_MARKER = /"entries"\s*:\s*\[/
LOG_MARKER = /"log"\s*:\s*\{/

Every .json in the tree reaches these guards. Both must match, so they stay separate probes rather than a union. A HAR's log is an object and its entries an array; matching the bare key names claimed any JSON that mentions them ({"log":"Log","entries":"Entries"} in a locale file) and then reported it as an unparsable HAR.

Instance methods

applicable?(filename : String) : Bool

Registers HAR file paths in CodeLocator.

Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

Registers HAR file paths in CodeLocator.

Source
name

Registers HAR file paths in CodeLocator.

Source