class HAR::Log
- HAR::Log
- Reference
- Object
Overview
This object represents the root of exported data.
There is one Page
object for every exported web page and one Entry
object
for every HTTP request. In case when an HTTP trace tool isn't able to group
requests by a page, the Log#pages
array is empty and individual requests
doesn't have a parent page.
Included Modules
- JSON::Serializable
Defined in:
har/log.crConstructors
- .new(pull : JSON::PullParser)
- .new(version : String = "1.2", creator : HAR::Creator = Creator.new, browser : Nil | HAR::Browser = Browser.new, entries : Array(HAR::Entry) = Array(Entry).new, pages : Nil | Array(HAR::Page) = nil, comment : Nil | String = nil)
Instance Method Summary
-
#browser : Browser | Nil
Name and version info of used browser.
-
#browser=(browser : Browser | Nil)
Name and version info of used browser.
-
#comment : String | Nil
A comment provided by the user or the application.
-
#comment=(comment : String | Nil)
A comment provided by the user or the application.
-
#creator : Creator
Name and version info of the log creator application.
-
#creator=(creator : Creator)
Name and version info of the log creator application.
-
#entries : Array(Entry)
This object represents an array with all exported (tracked) HTTP requests.
-
#entries=(entries : Array(Entry))
This object represents an array with all exported (tracked) HTTP requests.
-
#pages : Array(Page) | Nil
List of all exported (tracked) pages.
-
#pages=(pages : Array(Page) | Nil)
List of all exported (tracked) pages.
-
#version : String
Version number of the format.
-
#version=(version : String)
Version number of the format.
Constructor Detail
Instance Method Detail
Name and version info of the log creator application.
This object represents an array with all exported (tracked) HTTP requests.
Sorting entries by Entry#started_date_time
(starting from the oldest) is preferred
way how to export data since it can make importing faster.
However the reader application should always make sure the array is sorted
(if required for the import).
This object represents an array with all exported (tracked) HTTP requests.
Sorting entries by Entry#started_date_time
(starting from the oldest) is preferred
way how to export data since it can make importing faster.
However the reader application should always make sure the array is sorted
(if required for the import).
List of all exported (tracked) pages. Leave out this field if the application does not support grouping by pages.
List of all exported (tracked) pages. Leave out this field if the application does not support grouping by pages.
Version number of the format. If empty, string "1.1"
is assumed by default.