From 0a6b84639be2c86440dba7750303f8003f52f411 Mon Sep 17 00:00:00 2001 From: mzack Date: Wed, 29 Dec 2021 09:51:50 +0100 Subject: [PATCH] adding missing comments --- v2/pkg/protocols/headless/engine/page.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2/pkg/protocols/headless/engine/page.go b/v2/pkg/protocols/headless/engine/page.go index ba83d3db..7c7ad1cc 100644 --- a/v2/pkg/protocols/headless/engine/page.go +++ b/v2/pkg/protocols/headless/engine/page.go @@ -18,6 +18,7 @@ type Page struct { History []HistoryData } +// HistoryData contains the page request/response pairs type HistoryData struct { RawRequest string RawResponse string @@ -89,6 +90,7 @@ func (p *Page) URL() string { return info.URL } +// DumpHistory returns the full page navigation history func (p *Page) DumpHistory() string { var historyDump strings.Builder for _, historyData := range p.History {