module

Noir::HarDocument

Constants

SIZE_KEYS = {"bodySize", "headersSize", "size", "compression", "hitCount"}

The size fields the HAR shard types as Int32?.

Instance methods

parse(content : String) : HAR::Log

HAR.from_string, tolerating a size the shard cannot hold.

One capture of a response over 2 GiB ("bodySize": 3000000000), or a number beyond Int64, rejected the whole archive and every request in it. Sizes are informational and HAR already spells "unknown" as -1, so on that failure any size outside Int32 is read as -1 and the parse retried.

Source